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