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?

Implementations

impl<'a, T: Ord + Clone + 'a> Comparison<'a, T>[src]

pub fn matches<R: Row<T> + ?Sized>(&self, value: &T, row: &R) -> bool[src]

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

Trait Implementations

impl<'a, T: Clone + 'a> Clone for Comparison<'a, T>[src]

impl<'a, T: Debug + Clone + 'a> Debug for Comparison<'a, T>[src]

impl<'a, T: Display + Clone + 'a> Display for Comparison<'a, T>[src]

Auto Trait Implementations

impl<'a, T> RefUnwindSafe for Comparison<'a, T> where
    T: RefUnwindSafe

impl<'a, T> Send for Comparison<'a, T> where
    T: Send + Sync

impl<'a, T> Sync for Comparison<'a, T> where
    T: Sync

impl<'a, T> Unpin for Comparison<'a, T> where
    T: Unpin

impl<'a, T> UnwindSafe for Comparison<'a, T> where
    T: RefUnwindSafe + UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.