pub struct AccessSet(/* private fields */);Expand description
The set of accesses which have occurred at this location.
§Example
let accesses = AccessSet::READ;
assert!(accesses.accessed());
assert!(accesses.read());
assert!(!accesses.written());
assert!(!accesses.modified());Implementations§
Trait Implementations§
Source§impl BitOrAssign for AccessSet
impl BitOrAssign for AccessSet
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreimpl Copy for AccessSet
Auto Trait Implementations§
impl Freeze for AccessSet
impl RefUnwindSafe for AccessSet
impl Send for AccessSet
impl Sync for AccessSet
impl Unpin for AccessSet
impl UnwindSafe for AccessSet
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