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

pub struct Condition<T: PartialOrd> {
    pub column: usize,
    pub cmp: Comparison<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<T: PartialOrd> Condition<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<T: Clone + PartialOrd> Clone for Condition<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug + PartialOrd> Debug for Condition<T>
[src]

Formats the value using the given formatter.

impl<T: PartialOrd + Display> Display for Condition<T>
[src]

Formats the value using the given formatter.