#[repr(u8)]pub enum CheckCond {
AllClear = 0,
AnyClear = 8,
AllSet = 16,
AnySet = 24,
}Expand description
Check condition variants.
Variants§
AllClear = 0
(*address & mask) == 0 — All masked bits are 0 in value
AnyClear = 8
(*address & mask) != mask — Some masked bits are 0 in value
AllSet = 16
(*address & mask) == mask — All masked bits are 1 in value
AnySet = 24
(*address & mask) != 0 — Some masked bits are 1 in value
Trait Implementations§
impl Copy for CheckCond
impl Eq for CheckCond
impl StructuralPartialEq for CheckCond
Auto Trait Implementations§
impl Freeze for CheckCond
impl RefUnwindSafe for CheckCond
impl Send for CheckCond
impl Sync for CheckCond
impl Unpin for CheckCond
impl UnwindSafe for CheckCond
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more