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