pub struct EGraph<F, C> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<F: Ord, C> EGraphCore for EGraph<F, C>
impl<F: Ord, C> EGraphCore for EGraph<F, C>
Source§impl<F: Ord + Hash, C> EGraphRead for EGraph<F, C>
impl<F: Ord + Hash, C> EGraphRead for EGraph<F, C>
type Hasher = DefaultHashBuilder
fn find(&self, class: ClassId<C>) -> Result<ClassId<C>, NoNode>
Source§fn canonicalize(&self, node: &mut ENode<F, C>) -> Result<bool, NoNode>
fn canonicalize(&self, node: &mut ENode<F, C>) -> Result<bool, NoNode>
Returns true if the node was modified
fn is_canonical(&self, node: &ENode<F, C>) -> Result<bool, NoNode>
fn class_nodes(&self) -> ClassNodes<'_, Self>
fn dot<M: Formatter<F>>(&self, f: M) -> Graph<'static>
Auto Trait Implementations§
impl<F, C> Freeze for EGraph<F, C>
impl<F, C> RefUnwindSafe for EGraph<F, C>where
UnionFind<C>: RefUnwindSafe,
UnionFind<ENode<F, C>>: RefUnwindSafe,
BTreeMap<ClassId<C>, EClassData<F, C>>: RefUnwindSafe,
BTreeMap<ClassId<ENode<F, C>>, NodeData<F, C>>: RefUnwindSafe,
BTreeMap<ENode<F, C>, ClassId<ENode<F, C>>>: RefUnwindSafe,
impl<F, C> Send for EGraph<F, C>
impl<F, C> Sync for EGraph<F, C>
impl<F, C> Unpin for EGraph<F, C>
impl<F, C> UnsafeUnpin for EGraph<F, C>where
UnionFind<C>: UnsafeUnpin,
UnionFind<ENode<F, C>>: UnsafeUnpin,
BTreeMap<ClassId<C>, EClassData<F, C>>: UnsafeUnpin,
BTreeMap<ClassId<ENode<F, C>>, NodeData<F, C>>: UnsafeUnpin,
BTreeMap<ENode<F, C>, ClassId<ENode<F, C>>>: UnsafeUnpin,
impl<F, C> UnwindSafe for EGraph<F, C>where
UnionFind<C>: UnwindSafe,
UnionFind<ENode<F, C>>: UnwindSafe,
BTreeMap<ClassId<C>, EClassData<F, C>>: UnwindSafe,
BTreeMap<ClassId<ENode<F, C>>, NodeData<F, C>>: UnwindSafe,
BTreeMap<ENode<F, C>, ClassId<ENode<F, C>>>: UnwindSafe,
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