pub struct Function { /* private fields */ }Expand description
A function in the e-graph.
This contains the schema information of the function and the backend id of the function in the e-graph.
Implementations§
Source§impl Function
impl Function
Sourcepub fn can_subsume(&self) -> bool
pub fn can_subsume(&self) -> bool
Whether this function supports subsumption.
Sourcepub fn is_let_binding(&self) -> bool
pub fn is_let_binding(&self) -> bool
Whether this is a let binding
Whether this function is internally hidden (e.g., compiler-generated helper tables that should not appear in user-facing listings).
Sourcepub fn term_constructor(&self) -> Option<&str>
pub fn term_constructor(&self) -> Option<&str>
The term-constructor name associated with this function table, if any. Set on view tables created by the term/proof encoding to refer back to the user-visible constructor name.
Sourcepub fn is_unextractable(&self) -> bool
pub fn is_unextractable(&self) -> bool
Whether this constructor is excluded from ordinary extraction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl !RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl !UnwindSafe for Function
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