pub enum RPredExpr<O, L> {
Val(LitValVarId),
Const(L),
App {
op: O,
eval: fn(&[&L]) -> L,
args: Vec<RPredExpr<O, L>>,
},
}Expand description
A resolved guard expression. Leaves are bound literal values or constants; nodes are primitive applications carrying the model’s evaluator.
Variants§
Val(LitValVarId)
A literal value bound by a LitBind atom.
Const(L)
A constant written in the guard, parsed at the argument position’s sort.
App
Implementations§
Source§impl<O, L> RPredExpr<O, L>
impl<O, L> RPredExpr<O, L>
Sourcepub fn value_vars(&self, out: &mut Vec<LitValVarId>)
pub fn value_vars(&self, out: &mut Vec<LitValVarId>)
The literal-value variables the guard reads, in evaluation order.
Trait Implementations§
impl<O: Eq, L: Eq> Eq for RPredExpr<O, L>
Auto Trait Implementations§
impl<O, L> Freeze for RPredExpr<O, L>
impl<O, L> RefUnwindSafe for RPredExpr<O, L>where
L: RefUnwindSafe,
O: RefUnwindSafe,
fn(&[&L]) -> L: RefUnwindSafe,
Vec<RPredExpr<O, L>>: RefUnwindSafe,
impl<O, L> Send for RPredExpr<O, L>
impl<O, L> Sync for RPredExpr<O, L>
impl<O, L> Unpin for RPredExpr<O, L>
impl<O, L> UnsafeUnpin for RPredExpr<O, L>where
L: UnsafeUnpin,
O: UnsafeUnpin,
fn(&[&L]) -> L: UnsafeUnpin,
Vec<RPredExpr<O, L>>: UnsafeUnpin,
impl<O, L> UnwindSafe for RPredExpr<O, 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.