Struct gfx_core::mapping::Writable
[−]
[src]
pub struct Writable<'a, T: Copy, R: 'a + Resources, F: 'a + Factory<R>> where
F::Mapper: 'a, { /* fields omitted */ }
A handle to a writable map, which only allows setting elements.
Methods
impl<'a, T: Copy, R: Resources, F: Factory<R>> Writable<'a, T, R, F> where
F::Mapper: 'a,
[src]
F::Mapper: 'a,
pub fn set(&mut self, idx: usize, val: T)
[src]
Set a value in the buffer
pub fn to_mut_slice(&mut self) -> &mut [T]
[src]
Returns a mutable slice of the specified length.
Trait Implementations
impl<'a, T: Copy, R: Resources, F: Factory<R>> Drop for Writable<'a, T, R, F> where
F::Mapper: 'a,
[src]
F::Mapper: 'a,