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