#[repr(transparent)]pub struct PageAccess(u8);Expand description
Value for VmPage::access.
Tuple Fields§
§0: u8Implementations§
Source§impl PageAccess
impl PageAccess
Sourcepub const fn zeroed() -> Self
pub const fn zeroed() -> Self
Returns a new set with all bits of the backed-storage set to zero.
Sourcepub fn has_any(self, rhs: impl Into<Self>) -> bool
pub fn has_any(self, rhs: impl Into<Self>) -> bool
Returns true if this set contains any flags in the rhs set.
This performs the & operation on the underlying value and check if the results is
non-zero.
Trait Implementations§
Source§impl BitAnd for PageAccess
impl BitAnd for PageAccess
Source§impl BitOr<Mask<PageAccess, bool>> for PageAccess
impl BitOr<Mask<PageAccess, bool>> for PageAccess
Source§impl BitOrAssign<Mask<PageAccess, bool>> for PageAccess
impl BitOrAssign<Mask<PageAccess, bool>> for PageAccess
Source§fn bitor_assign(&mut self, rhs: Mask<Self, bool>)
fn bitor_assign(&mut self, rhs: Mask<Self, bool>)
Performs the
|= operation. Read moreSource§impl BitOrAssign for PageAccess
impl BitOrAssign for PageAccess
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl Clone for PageAccess
impl Clone for PageAccess
Source§fn clone(&self) -> PageAccess
fn clone(&self) -> PageAccess
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<Mask<PageAccess, bool>> for PageAccess
impl From<Mask<PageAccess, bool>> for PageAccess
Source§impl From<PageAccess> for u8
impl From<PageAccess> for u8
Source§fn from(value: PageAccess) -> Self
fn from(value: PageAccess) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PageAccess
impl From<u8> for PageAccess
Source§impl PartialEq<Mask<PageAccess, bool>> for PageAccess
impl PartialEq<Mask<PageAccess, bool>> for PageAccess
impl Copy for PageAccess
Auto Trait Implementations§
impl Freeze for PageAccess
impl RefUnwindSafe for PageAccess
impl Send for PageAccess
impl Sync for PageAccess
impl Unpin for PageAccess
impl UnwindSafe for PageAccess
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