Struct rin::gl::buffer::MapWrite [−][src]
pub struct MapWrite<'a, T, B> where
B: WithBackend,
T: 'static, { /* fields omitted */ }Implementations
impl<'a, T, B> MapWrite<'a, T, B> where
B: WithBackend,
T: 'static, [src]
impl<'a, T, B> MapWrite<'a, T, B> where
B: WithBackend,
T: 'static, [src]pub fn update(&mut self, data: &[T])[src]
Update the range with the passed data
Will panic if the range is smaller than the data
Simple memcpy
pub unsafe fn data_mut(&mut self) -> &mut [T]ⓘ[src]
Write only slice of the current mapping
This method is unsafe cause reading from the returned slice will have undefined behaviour
impl<'a, T, B> MapWrite<'a, T, B> where
B: BufferRange<T> + WithBackend,
T: 'static, [src]
impl<'a, T, B> MapWrite<'a, T, B> where
B: BufferRange<T> + WithBackend,
T: 'static, [src]pub fn into_range_mut<R>(self, range: R) -> MapWrite<'a, T, B> where
R: InputRange, [src]
R: InputRange,
Consumes the map into a range of itself
Useful to do operations on portions of the mapping
Panics if the range is out of bounds
Trait Implementations
Auto Trait Implementations
impl<'a, T, B> RefUnwindSafe for MapWrite<'a, T, B> where
B: RefUnwindSafe,
T: RefUnwindSafe,
B: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T, B> Send for MapWrite<'a, T, B> where
B: Sync,
T: Send,
B: Sync,
T: Send,
impl<'a, T, B> Sync for MapWrite<'a, T, B> where
B: Sync,
T: Sync,
B: Sync,
T: Sync,
impl<'a, T, B> Unpin for MapWrite<'a, T, B>
impl<'a, T, B> !UnwindSafe for MapWrite<'a, T, B>
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]
impl<T> DowncastSync for T where
T: Any + Send + Sync, [src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]pub fn to_subset(&self) -> Option<SS>[src]
pub fn is_in_subset(&self) -> bool[src]
pub fn to_subset_unchecked(&self) -> SS[src]
pub fn from_subset(element: &SS) -> SP[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>, [src]