Enum shortcut::cmp::Value [] [src]

pub enum Value<T> {
    Const(T),
    Column(usize),
}

A value represents something to compare against.

Variants

A constant value literal.

A different column for the same row. Note that comparisons of this kind cannot use an index, at least not in the current implementation.

Methods

impl<T> Value<T>
[src]

Extract the value literal for this Value when evaluated for the given row. For Const values, this evaluates to the Const value itself. For Column, it evaluates to the value of that column in the given row.

Trait Implementations

impl<T: Clone> Clone for Value<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Value<T>
[src]

Formats the value using the given formatter.

impl<T: Display> Display for Value<T>
[src]

Formats the value using the given formatter.