Enum shortcut::cmp::Comparison [] [src]

pub enum Comparison<T: PartialOrd> {
    Equal(Value<T>),
}

A comparison to perform for a literal value against a Value.

Variants

Equal(Value<T>)

Is the value equal to the given Value?

Methods

impl<T: PartialOrd> Comparison<T>
[src]

fn matches(&self, value: &T, row: &[T]) -> bool

Returns true if the given value compares successfully against this Value when evaluated against the given row.

Trait Implementations

impl<T: Debug + PartialOrd> Debug for Comparison<T>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<T: Clone + PartialOrd> Clone for Comparison<T>
[src]

fn clone(&self) -> Comparison<T>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more