pub enum OpKind<SubExpr> {
App(SubExpr, SubExpr),
BinOp(BinOp, SubExpr, SubExpr),
BoolIf(SubExpr, SubExpr, SubExpr),
Merge(SubExpr, SubExpr, Option<SubExpr>),
ToMap(SubExpr, Option<SubExpr>),
Field(SubExpr, Label),
Projection(SubExpr, BTreeSet<Label>),
ProjectionByExpr(SubExpr, SubExpr),
Completion(SubExpr, SubExpr),
With(SubExpr, Vec<Label>, SubExpr),
}Expand description
Operations
Variants§
App(SubExpr, SubExpr)
f a
BinOp(BinOp, SubExpr, SubExpr)
Binary operations
BoolIf(SubExpr, SubExpr, SubExpr)
if x then y else z
Merge(SubExpr, SubExpr, Option<SubExpr>)
merge x y : t
ToMap(SubExpr, Option<SubExpr>)
toMap x : t
Field(SubExpr, Label)
e.x
Projection(SubExpr, BTreeSet<Label>)
e.{ x, y, z }
ProjectionByExpr(SubExpr, SubExpr)
e.(t)
Completion(SubExpr, SubExpr)
x::y
With(SubExpr, Vec<Label>, SubExpr)
x with a.b.c = y
Implementations§
Trait Implementations§
Source§impl<SE: Display + Clone> Display for OpKind<SE>
Generic instance that delegates to subexpressions
impl<SE: Display + Clone> Display for OpKind<SE>
Generic instance that delegates to subexpressions
Source§impl<SubExpr: Ord> Ord for OpKind<SubExpr>
impl<SubExpr: Ord> Ord for OpKind<SubExpr>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<SubExpr: PartialOrd> PartialOrd for OpKind<SubExpr>
impl<SubExpr: PartialOrd> PartialOrd for OpKind<SubExpr>
impl<SubExpr: Eq> Eq for OpKind<SubExpr>
impl<SubExpr> StructuralPartialEq for OpKind<SubExpr>
Auto Trait Implementations§
impl<SubExpr> Freeze for OpKind<SubExpr>where
SubExpr: Freeze,
impl<SubExpr> RefUnwindSafe for OpKind<SubExpr>where
SubExpr: RefUnwindSafe,
impl<SubExpr> !Send for OpKind<SubExpr>
impl<SubExpr> !Sync for OpKind<SubExpr>
impl<SubExpr> Unpin for OpKind<SubExpr>where
SubExpr: Unpin,
impl<SubExpr> UnwindSafe for OpKind<SubExpr>where
SubExpr: UnwindSafe,
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> 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.