Enum shortcut::cmp::Comparison
[−]
[src]
pub enum Comparison<'a, T: Clone + 'a> { Equal(Value<'a, T>), }
A comparison to perform for a literal value against a Value
.
Variants
Equal(Value<'a, T>)
Is the value equal to the given Value
?
Methods
impl<'a, T: Ord + Clone + 'a> Comparison<'a, T>
[src]
fn matches<R: Row<T> + ?Sized>(&self, value: &T, row: &R) -> bool
Returns true if the given value compares successfully against this Value
when evaluated
against the given row.
Trait Implementations
impl<'a, T: Clone + Clone + 'a> Clone for Comparison<'a, T>
[src]
fn clone(&self) -> Comparison<'a, 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