pub enum Atom {
Plain {
node: String,
op: String,
children: Vec<String>,
span: Span,
},
Lit {
node: String,
text: String,
span: Span,
},
AExact {
node: String,
op: String,
children: Vec<String>,
span: Span,
},
APrefix {
node: String,
op: String,
rest: String,
fixed: Vec<String>,
span: Span,
},
ASuffix {
node: String,
op: String,
fixed: Vec<String>,
rest: String,
span: Span,
},
ABoth {
node: String,
op: String,
pre: String,
fixed: Vec<String>,
suf: String,
span: Span,
},
ACExact {
node: String,
op: String,
elems: Vec<(String, FlatMult)>,
span: Span,
},
ACSub {
node: String,
op: String,
elems: Vec<(String, FlatMult)>,
rest: String,
span: Span,
},
ACIExact {
node: String,
op: String,
elems: Vec<String>,
span: Span,
},
ACISub {
node: String,
op: String,
elems: Vec<String>,
rest: String,
span: Span,
},
Eq(String, String),
Pred {
expr: PredExpr,
span: Span,
},
}Expand description
A flat atomic pattern — one e-node shape to match.
Variants§
Plain
node_var = (op child_vars...)
Lit
node_var = lit_text
AExact
node_var = (op [children...]) — A exact match
APrefix
A with prefix rest
ASuffix
A with suffix rest
ABoth
A with both rests
ACExact
node_var = (op {e:m ...}) — AC exact
ACSub
AC subset with rest
ACIExact
ACI exact
ACISub
ACI subset with rest
Eq(String, String)
Equality constraint: two vars must be in the same e-class.
Pred
Primitive predicate guard: expr must evaluate to a true boolean over the
literal values bound elsewhere in the query. Binds nothing and scans no
relation.
Trait Implementations§
impl Eq for Atom
impl StructuralPartialEq for Atom
Auto Trait Implementations§
impl Freeze for Atom
impl RefUnwindSafe for Atom
impl Send for Atom
impl Sync for Atom
impl Unpin for Atom
impl UnsafeUnpin for Atom
impl UnwindSafe for Atom
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.