Expand description
A value represents something to compare against.
Variants§
Const(Cow<'a, T>)
A constant value literal.
Column(usize)
A different column for the same row. Note that comparisons of this kind cannot use an index, at least not in the current implementation.
Implementations§
source§impl<'a, T: Clone + 'a> Value<'a, T>
impl<'a, T: Clone + 'a> Value<'a, T>
sourcepub fn value<'b: 'a, R: Row<T> + ?Sized>(&'b self, row: &'b R) -> &'b T
pub fn value<'b: 'a, R: Row<T> + ?Sized>(&'b self, row: &'b R) -> &'b T
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.