Trait glin::buffer::TypedBufferMut [−][src]
pub trait TypedBufferMut<T>: TypedBuffer<T> { unsafe fn with_map_write<F: Fn(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
where
Self: Sized; fn with_map_read_write<F: Fn(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
where
Self: Sized; }
Buffer object with a type
Required methods
unsafe fn with_map_write<F: Fn(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()> where
Self: Sized,
[src]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()> where
Self: Sized,
Maps a buffer object’s data store
Pass a closure that receives the mapped buffer to access it
This method is unsafe cause reading from mapped slice would have undefined behaviour
see glMapBuffer
fn with_map_read_write<F: Fn(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()> where
Self: Sized,
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()> where
Self: Sized,
Maps a buffer object’s data store
Pass a closure that receives the mapped buffer to access it
see glMapBuffer
Implementors
impl<'a, T: 'static> TypedBufferMut<T> for Buffer<T>
[src]
impl<'a, T: 'static> TypedBufferMut<T> for Buffer<T>
[src]unsafe fn with_map_write<F: Fn(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
fn with_map_read_write<F: Fn(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
impl<'a, T: 'static> TypedBufferMut<T> for BufferStorage<T>
[src]
impl<'a, T: 'static> TypedBufferMut<T> for BufferStorage<T>
[src]unsafe fn with_map_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
fn with_map_read_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
impl<'a, T: 'static> TypedBufferMut<T> for SharedBuffer<T>
[src]
impl<'a, T: 'static> TypedBufferMut<T> for SharedBuffer<T>
[src]unsafe fn with_map_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
fn with_map_read_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
impl<'a, T: 'static> TypedBufferMut<T> for SharedBufferStorage<T>
[src]
impl<'a, T: 'static> TypedBufferMut<T> for SharedBufferStorage<T>
[src]unsafe fn with_map_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
fn with_map_read_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
impl<'a, T: 'static, B: TypedBuffer<T> + WithMapRangeMut<T> + WithBackend, BB: BorrowMut<B>> TypedBufferMut<T> for Range<T, B, BB>
[src]
impl<'a, T: 'static, B: TypedBuffer<T> + WithMapRangeMut<T> + WithBackend, BB: BorrowMut<B>> TypedBufferMut<T> for Range<T, B, BB>
[src]unsafe fn with_map_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapWriteFlags,
f: F
) -> Result<()>
fn with_map_read_write<F: FnMut(&mut [T])>(
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>
[src]
&mut self,
flags: MapReadWriteFlags,
f: F
) -> Result<()>