pub enum ComparisonConstraint {
EqualTo(ArgumentValue),
NotEqualTo(ArgumentValue),
LessThan(ArgumentValue),
AtMost(ArgumentValue),
GreaterThan(ArgumentValue),
AtLeast(ArgumentValue),
}Expand description
A comparison between an argument and a captured scalar value.
Variants§
EqualTo(ArgumentValue)
Requires equality with the captured value.
NotEqualTo(ArgumentValue)
Requires inequality with the captured value.
LessThan(ArgumentValue)
Requires a value strictly less than the captured value.
AtMost(ArgumentValue)
Requires a value less than or equal to the captured value.
GreaterThan(ArgumentValue)
Requires a value strictly greater than the captured value.
AtLeast(ArgumentValue)
Requires a value greater than or equal to the captured value.
Trait Implementations§
Source§impl Clone for ComparisonConstraint
impl Clone for ComparisonConstraint
Source§fn clone(&self) -> ComparisonConstraint
fn clone(&self) -> ComparisonConstraint
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ComparisonConstraint
impl Debug for ComparisonConstraint
impl Eq for ComparisonConstraint
Source§impl PartialEq for ComparisonConstraint
impl PartialEq for ComparisonConstraint
impl StructuralPartialEq for ComparisonConstraint
Auto Trait Implementations§
impl Freeze for ComparisonConstraint
impl RefUnwindSafe for ComparisonConstraint
impl Send for ComparisonConstraint
impl Sync for ComparisonConstraint
impl Unpin for ComparisonConstraint
impl UnsafeUnpin for ComparisonConstraint
impl UnwindSafe for ComparisonConstraint
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