pub enum CompareOp {
Eq(Value),
Ne(Value),
Lt(f64),
Lte(f64),
Gt(f64),
Gte(f64),
}Expand description
Supported comparison operators with type-safe values
Variants§
Eq(Value)
Equal comparison, can be used with any value type
Ne(Value)
Not equal comparison, can be used with any value type
Lt(f64)
Less than comparison, only valid for numeric values
Lte(f64)
Less than or equal comparison, only valid for numeric values
Gt(f64)
Greater than comparison, only valid for numeric values
Gte(f64)
Greater than or equal comparison, only valid for numeric values
Trait Implementations§
impl StructuralPartialEq for CompareOp
Auto Trait Implementations§
impl Freeze for CompareOp
impl RefUnwindSafe for CompareOp
impl Send for CompareOp
impl Sync for CompareOp
impl Unpin for CompareOp
impl UnwindSafe for CompareOp
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