pub enum RhsOp<O, V> {
FetchNode(RhsNodeRef),
Lit(O, V),
LitVar(O, LitValVarId),
MultVar(O, RhsMultRef),
App {
op: O,
args: Vec<RhsArg<O, V>>,
},
PrimApp {
op: O,
args: Vec<RPrimArg>,
},
FetchGlobal(GlobalVarId),
}Expand description
Instruction that produces one Cfg::G when evaluated against a Match.
Variants§
FetchNode(RhsNodeRef)
Fetch bound e-node id from match.
Lit(O, V)
Create literal node via eg.add_lit().
LitVar(O, LitValVarId)
Reconstruct @sort(val) lit node from a bound LitValVarId.
MultVar(O, RhsMultRef)
Reconstruct an @i64(k) lit node from a bound AC multiplicity variable.
App
Build (op args...) via eg.add(). Args may expand to multiple children.
PrimApp
Evaluate a prim op on bound lit values or multiplicities, intern result.
FetchGlobal(GlobalVarId)
Fetch a global e-class id from the runtime global bindings.
Trait Implementations§
Auto Trait Implementations§
impl<O, V> Freeze for RhsOp<O, V>
impl<O, V> RefUnwindSafe for RhsOp<O, V>
impl<O, V> Send for RhsOp<O, V>
impl<O, V> Sync for RhsOp<O, V>
impl<O, V> Unpin for RhsOp<O, V>
impl<O, V> UnsafeUnpin for RhsOp<O, V>
impl<O, V> UnwindSafe for RhsOp<O, V>
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