#[repr(transparent)]pub struct PageFlags(u8);
Expand description
Flags of VmPage
.
Tuple Fields§
§0: u8
Implementations§
Source§impl PageFlags
impl PageFlags
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 BitOrAssign<Mask<PageFlags, bool>> for PageFlags
impl BitOrAssign<Mask<PageFlags, bool>> for PageFlags
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 PageFlags
impl BitOrAssign for PageFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|=
operation. Read moreimpl Copy for PageFlags
Auto Trait Implementations§
impl Freeze for PageFlags
impl RefUnwindSafe for PageFlags
impl Send for PageFlags
impl Sync for PageFlags
impl Unpin for PageFlags
impl UnwindSafe for PageFlags
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