pub struct NumericMatch {
pub end_of_list: bool,
pub and_bit: bool,
pub lt: bool,
pub gt: bool,
pub eq: bool,
pub value: u64,
}Expand description
A single numeric comparison term with operator flags and a value.
Multiple terms are combined with AND/OR logic per the and_bit flag;
the end_of_list flag terminates the operator list for a component.
Fields§
§end_of_list: boolLast term in this operator list.
and_bit: boolIf true, AND with the previous term; otherwise OR.
lt: boolLess-than comparison flag.
gt: boolGreater-than comparison flag.
eq: boolEqual comparison flag.
value: u64Numeric value to compare against.
Trait Implementations§
Source§impl Clone for NumericMatch
impl Clone for NumericMatch
Source§fn clone(&self) -> NumericMatch
fn clone(&self) -> NumericMatch
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 NumericMatch
impl Debug for NumericMatch
Source§impl Hash for NumericMatch
impl Hash for NumericMatch
Source§impl Ord for NumericMatch
impl Ord for NumericMatch
Source§fn cmp(&self, other: &NumericMatch) -> Ordering
fn cmp(&self, other: &NumericMatch) -> 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 NumericMatch
impl PartialEq for NumericMatch
Source§impl PartialOrd for NumericMatch
impl PartialOrd for NumericMatch
impl Eq for NumericMatch
impl StructuralPartialEq for NumericMatch
Auto Trait Implementations§
impl Freeze for NumericMatch
impl RefUnwindSafe for NumericMatch
impl Send for NumericMatch
impl Sync for NumericMatch
impl Unpin for NumericMatch
impl UnsafeUnpin for NumericMatch
impl UnwindSafe for NumericMatch
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