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