Enum CoreTestOp
#[repr(u8)]pub enum CoreTestOp {
Nop = 0,
Equal = 1,
Less = 2,
Greater = 3,
Mask1 = 4,
Mask0 = 5,
}
Variants§
Nop = 0
‘.’ Adds no additional constraints
Equal = 1
‘=’ Must be exactly equal
Less = 2
‘<’ Less than
Greater = 3
‘>’ Greater than
Mask1 = 4
‘1’ Set bits must be set in value - rest (the 0 bits) are free
Mask0 = 5
‘0’ Set bits are free - rest (the 0 bits) must be equal to 0
Implementations§
§impl CoreTestOp
impl CoreTestOp
pub const fn as_set(self) -> CoreTestSet
pub const fn as_str(self) -> &'static str
pub const fn into_byte(self) -> u8
pub const fn from_byte(byte: u8) -> Option<CoreTestOp>
pub const fn uint_func<U>(self) -> fn(_: &U, _: &U) -> boolwhere
U: UInt,
pub fn slice_func(self) -> fn(_: &[u8], _: &[u8]) -> bool
pub fn test_be_bytes<O>(self) -> impl Fn(O, O)
Trait Implementations§
§impl Clone for CoreTestOp
impl Clone for CoreTestOp
§fn clone(&self) -> CoreTestOp
fn clone(&self) -> CoreTestOp
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for CoreTestOp
impl Debug for CoreTestOp
§impl Display for CoreTestOp
impl Display for CoreTestOp
§impl FromStr for CoreTestOp
impl FromStr for CoreTestOp
§impl PartialEq for CoreTestOp
impl PartialEq for CoreTestOp
§impl TryFrom<&[u8]> for CoreTestOp
impl TryFrom<&[u8]> for CoreTestOp
impl Copy for CoreTestOp
impl Eq for CoreTestOp
impl StructuralPartialEq for CoreTestOp
Auto Trait Implementations§
impl Freeze for CoreTestOp
impl RefUnwindSafe for CoreTestOp
impl Send for CoreTestOp
impl Sync for CoreTestOp
impl Unpin for CoreTestOp
impl UnwindSafe for CoreTestOp
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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