Struct shortcut::cmp::Condition [−][src]
A single condition to evaluate for a row in the dataset.
Fields
column: usize
The column of the row to use as the comparison value.
cmp: Comparison<'a, T>
The comparison to perform on the selected value.
Implementations
impl<'a, T: Ord + Clone + 'a> Condition<'a, T>
[src]
pub fn matches<R: Row<T> + ?Sized>(&self, row: &R) -> bool
[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 + 'a> Clone for Condition<'a, T>
[src]
impl<'a, T: Debug + Clone + 'a> Debug for Condition<'a, T>
[src]
impl<'a, T: Display + Clone + 'a> Display for Condition<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for Condition<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for Condition<'a, T> where
T: Send + Sync,
T: Send + Sync,
impl<'a, T> Sync for Condition<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for Condition<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> UnwindSafe for Condition<'a, T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,