Struct shortcut::cmp::Condition [] [src]

pub struct Condition<'a, T: Clone + 'a> {
    pub column: usize,
    pub cmp: Comparison<'a, T>,
}

A single condition to evaluate for a row in the dataset.

Fields

The column of the row to use as the comparison value.

The comparison to perform on the selected value.

Methods

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

Returns true if this condition holds true for the given row. To determine if this is the case, row[self.column] is extracted, and is evaluated using the comparison in self.cmp.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

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

Formats the value using the given formatter. Read more