Trait gfx_core::mapping::Builder
[−]
[src]
pub trait Builder<'a, R: Resources> { type RawMapping: Raw; fn map_readable<T: Copy>(
&'a mut self,
_: Self::RawMapping,
_: usize
) -> Readable<T, R, Self>
where
Self: Sized + Factory<R>; fn map_writable<T: Copy>(
&'a mut self,
_: Self::RawMapping,
_: usize
) -> Writable<T, R, Self>
where
Self: Sized + Factory<R>; fn map_read_write<T: Copy>(
&'a mut self,
_: Self::RawMapping,
_: usize
) -> RW<T, R, Self>
where
Self: Sized + Factory<R>; }
A service trait with methods for mapping already implemented. To be used by device back ends.
Associated Types
type RawMapping: Raw
Required Methods
fn map_readable<T: Copy>(
&'a mut self,
_: Self::RawMapping,
_: usize
) -> Readable<T, R, Self> where
Self: Sized + Factory<R>,
&'a mut self,
_: Self::RawMapping,
_: usize
) -> Readable<T, R, Self> where
Self: Sized + Factory<R>,
fn map_writable<T: Copy>(
&'a mut self,
_: Self::RawMapping,
_: usize
) -> Writable<T, R, Self> where
Self: Sized + Factory<R>,
&'a mut self,
_: Self::RawMapping,
_: usize
) -> Writable<T, R, Self> where
Self: Sized + Factory<R>,
fn map_read_write<T: Copy>(
&'a mut self,
_: Self::RawMapping,
_: usize
) -> RW<T, R, Self> where
Self: Sized + Factory<R>,
&'a mut self,
_: Self::RawMapping,
_: usize
) -> RW<T, R, Self> where
Self: Sized + Factory<R>,
Implementors
impl<'a, R: Resources, F: Factory<R>> Builder<'a, R> for F where
F::Mapper: 'a, type RawMapping = F::Mapper;