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