pub struct BitmaskMatch {
pub end_of_list: bool,
pub and_bit: bool,
pub not_bit: bool,
pub match_bit: bool,
pub value: u16,
}Expand description
A single bitmask comparison term.
Fields§
§end_of_list: boolLast term in this operator list.
and_bit: boolIf true, AND with the previous term; otherwise OR.
not_bit: boolNegate the match result.
match_bit: boolIf true, all specified bits must match; otherwise any bit suffices.
value: u16Bitmask value to compare against.
Trait Implementations§
Source§impl Clone for BitmaskMatch
impl Clone for BitmaskMatch
Source§fn clone(&self) -> BitmaskMatch
fn clone(&self) -> BitmaskMatch
Returns a duplicate 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 moreSource§impl Debug for BitmaskMatch
impl Debug for BitmaskMatch
Source§impl Hash for BitmaskMatch
impl Hash for BitmaskMatch
Source§impl Ord for BitmaskMatch
impl Ord for BitmaskMatch
Source§fn cmp(&self, other: &BitmaskMatch) -> Ordering
fn cmp(&self, other: &BitmaskMatch) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BitmaskMatch
impl PartialEq for BitmaskMatch
Source§impl PartialOrd for BitmaskMatch
impl PartialOrd for BitmaskMatch
impl Eq for BitmaskMatch
impl StructuralPartialEq for BitmaskMatch
Auto Trait Implementations§
impl Freeze for BitmaskMatch
impl RefUnwindSafe for BitmaskMatch
impl Send for BitmaskMatch
impl Sync for BitmaskMatch
impl Unpin for BitmaskMatch
impl UnsafeUnpin for BitmaskMatch
impl UnwindSafe for BitmaskMatch
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