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.