pub struct EGraph {
pub classes: Vec<EClass>,
pub parent: Vec<usize>,
pub total_nodes: usize,
}Expand description
An E-graph for equality saturation.
Fields§
§classes: Vec<EClass>E-classes by ID.
parent: Vec<usize>Union-find parent array.
total_nodes: usizeNumber of e-nodes total.
Implementations§
Source§impl EGraph
impl EGraph
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EGraph
impl RefUnwindSafe for EGraph
impl Send for EGraph
impl Sync for EGraph
impl Unpin for EGraph
impl UnsafeUnpin for EGraph
impl UnwindSafe for EGraph
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