pub enum RAtom<O, S, L> {
Show 14 variants
Plain {
node: VarId,
op: O,
children: Vec<PatVar>,
},
Lit {
node: VarId,
op: O,
sort: S,
value: L,
},
AExact {
node: VarId,
op: O,
children: Vec<PatVar>,
},
APrefix {
node: VarId,
op: O,
pre: SeqVarId,
fixed: Vec<PatVar>,
},
ASuffix {
node: VarId,
op: O,
fixed: Vec<PatVar>,
suf: SeqVarId,
},
ABoth {
node: VarId,
op: O,
pre: SeqVarId,
fixed: Vec<PatVar>,
suf: SeqVarId,
},
ACExact {
node: VarId,
op: O,
elems: Vec<(PatVar, RMult)>,
},
ACSub {
node: VarId,
op: O,
elems: Vec<(PatVar, RMult)>,
rest: MsetVarId,
},
ACIExact {
node: VarId,
op: O,
elems: Vec<PatVar>,
},
ACISub {
node: VarId,
op: O,
elems: Vec<PatVar>,
rest: SetVarId,
},
LitBind {
node: VarId,
op: O,
val: LitValVarId,
},
Eq(VarId, VarId),
EqGlobal(VarId, GlobalVarId),
Pred {
guard: PredGuard<O, L>,
deps: Vec<usize>,
},
}Variants§
Plain
Lit
A ground literal in a pattern: node is the @sort literal node whose payload
equals value. op is that @sort constructor — carried so the scheduler can
emit a real index lookup for this atom. Without it the atom had no lookup to
scan and compiled to an unsatisfiable join.
AExact
APrefix
ASuffix
ABoth
ACExact
ACSub
ACIExact
ACISub
LitBind
Eq(VarId, VarId)
EqGlobal(VarId, GlobalVarId)
Pred
A primitive predicate guard. Scans nothing and binds nothing: it is evaluated over already-bound literal values and keeps or drops the partial match.
deps names the atoms that bind the guard’s literal values: the LitBind atoms
for the variables in guard.expr. The scheduler lowers the guard as soon as all
of them have run, which is as early as the guard can be evaluated at all.
Trait Implementations§
impl<O: Eq, S: Eq, L: Eq> Eq for RAtom<O, S, L>
impl<O: PartialEq, S: PartialEq, L: PartialEq> StructuralPartialEq for RAtom<O, S, L>
Auto Trait Implementations§
impl<O, S, L> Freeze for RAtom<O, S, L>
impl<O, S, L> RefUnwindSafe for RAtom<O, S, L>
impl<O, S, L> Send for RAtom<O, S, L>
impl<O, S, L> Sync for RAtom<O, S, L>
impl<O, S, L> Unpin for RAtom<O, S, L>
impl<O, S, L> UnsafeUnpin for RAtom<O, S, L>
impl<O, S, L> UnwindSafe for RAtom<O, S, L>
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.