pub struct BufferState { /* private fields */ }
Implementations§
Source§impl BufferState
impl BufferState
Sourcepub fn access(&self) -> BufferAccess
pub fn access(&self) -> BufferAccess
Returns the last access that was performed on the buffer.
Sourcepub unsafe fn set_access(&self, access: BufferAccess)
pub unsafe fn set_access(&self, access: BufferAccess)
Sets the last access that was performed on the buffer.
§Safety
access
must constitute the correct access that was last performed on the buffer.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for BufferState
impl !RefUnwindSafe for BufferState
impl Send for BufferState
impl Sync for BufferState
impl Unpin for BufferState
impl !UnwindSafe for BufferState
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