pub enum UnitRef {
Lit {
token: String,
},
Ctor {
term: Term,
},
}Expand description
Parsed reference to an operator’s identity (unit) element. Surface registration
sort-checks and builds the actual e-node immediately, storing it in the egraph’s
per-op unit_node map; this descriptor retains the source-level form.
Variants§
Lit
A literal unit (0, true, #b0000): its surface token and the sort to parse it at.
Ctor
A constructed unit ((zero)): the parsed surface term, built via the term builder.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnitRef
impl RefUnwindSafe for UnitRef
impl Send for UnitRef
impl Sync for UnitRef
impl Unpin for UnitRef
impl UnsafeUnpin for UnitRef
impl UnwindSafe for UnitRef
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