pub struct BufferSliceMutWrapper<'a, const TARGET: u32>where
WebGL2State: BindBuffer<TARGET>,{ /* private fields */ }Expand description
Buffer mutable slice wrapper.
When a buffer is mapped, we are the only owner of it. We can then read or write from/to the
mapped buffer, and then update the GPU buffer on the Drop implementation.
Trait Implementations§
Source§impl<const TARGET: u32> Drop for BufferSliceMutWrapper<'_, TARGET>where
WebGL2State: BindBuffer<TARGET>,
impl<const TARGET: u32> Drop for BufferSliceMutWrapper<'_, TARGET>where
WebGL2State: BindBuffer<TARGET>,
Auto Trait Implementations§
impl<'a, const TARGET: u32> Freeze for BufferSliceMutWrapper<'a, TARGET>
impl<'a, const TARGET: u32> !RefUnwindSafe for BufferSliceMutWrapper<'a, TARGET>
impl<'a, const TARGET: u32> !Send for BufferSliceMutWrapper<'a, TARGET>
impl<'a, const TARGET: u32> !Sync for BufferSliceMutWrapper<'a, TARGET>
impl<'a, const TARGET: u32> Unpin for BufferSliceMutWrapper<'a, TARGET>
impl<'a, const TARGET: u32> UnsafeUnpin for BufferSliceMutWrapper<'a, TARGET>
impl<'a, const TARGET: u32> !UnwindSafe for BufferSliceMutWrapper<'a, TARGET>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more