pub enum ColumnOp {
Col(ColId),
Val(AlgebraicValue),
ColCmpVal {
lhs: ColId,
cmp: OpCmp,
rhs: AlgebraicValue,
},
Cmp {
lhs: Box<ColumnOp>,
cmp: OpCmp,
rhs: Box<ColumnOp>,
},
Log {
op: OpLogic,
operands: Box<[ColumnOp]>,
},
}Variants§
Col(ColId)
The value is the the column at to_index(col) in the row, i.e., row.read_column(to_index(col)).
Val(AlgebraicValue)
The value is the embedded value.
ColCmpVal
The value is eval_cmp(cmp, row.read_column(to_index(lhs)), rhs).
This is an optimized version of Cmp, avoiding one depth of nesting.
Cmp
The value is eval_cmp(cmp, eval(row, lhs), eval(row, rhs)).
Log
Let conds = eval(row, operands_i).
For op = OpLogic::And, the value is all(conds).
For op = OpLogic::Or, the value is any(conds).
Implementations§
Trait Implementations§
Source§impl From<AlgebraicValue> for ColumnOp
impl From<AlgebraicValue> for ColumnOp
Source§fn from(original: AlgebraicValue) -> ColumnOp
fn from(original: AlgebraicValue) -> ColumnOp
Converts to this type from the input type.
Source§impl Ord for ColumnOp
impl Ord for ColumnOp
Source§impl PartialOrd for ColumnOp
impl PartialOrd for ColumnOp
impl Eq for ColumnOp
impl StructuralPartialEq for ColumnOp
Auto Trait Implementations§
impl Freeze for ColumnOp
impl RefUnwindSafe for ColumnOp
impl Send for ColumnOp
impl Sync for ColumnOp
impl Unpin for ColumnOp
impl UnwindSafe for ColumnOp
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more