pub struct EGraph<F, C, S = DefaultHashBuilder> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<F: Eq + Hash, C, S: Clone + BuildHasher> EGraphCore for EGraph<F, C, S>
impl<F: Eq + Hash, C, S: Clone + BuildHasher> EGraphCore for EGraph<F, C, S>
Source§impl<F: Eq + Hash, C, S: Clone + BuildHasher> EGraphRead for EGraph<F, C, S>
impl<F: Eq + Hash, C, S: Clone + BuildHasher> EGraphRead for EGraph<F, C, S>
type Hasher = S
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, S>
fn dot<M: Formatter<F>>(&self, f: M) -> Graph<'static>
Source§impl<F: Eq + Hash, C, S: Clone + BuildHasher> EGraphUpgradeTrace for EGraph<F, C, S>
impl<F: Eq + Hash, C, S: Clone + BuildHasher> EGraphUpgradeTrace for EGraph<F, C, S>
type WriteRef<'a, T: EGraphTrace<F, C>> = EGraphMut<'a, F, C, T, S> where Self: 'a
fn write_trace<T: EGraphTrace<F, C>>( &mut self, tracer: T, ) -> Self::WriteRef<'_, T>
Auto Trait Implementations§
impl<F, C, S> Freeze for EGraph<F, C, S>
impl<F, C, S> RefUnwindSafe for EGraph<F, C, S>where
UnionFind<C>: RefUnwindSafe,
UnionFind<ENode<F, C>>: RefUnwindSafe,
HashMap<ClassId<C>, EClassData<F, C, S>, S>: RefUnwindSafe,
HashMap<ClassId<ENode<F, C>>, NodeData<F, C>, S>: RefUnwindSafe,
HashMap<ENode<F, C>, ClassId<ENode<F, C>>, S>: RefUnwindSafe,
impl<F, C, S> Send for EGraph<F, C, S>
impl<F, C, S> Sync for EGraph<F, C, S>
impl<F, C, S> Unpin for EGraph<F, C, S>
impl<F, C, S> UnsafeUnpin for EGraph<F, C, S>where
UnionFind<C>: UnsafeUnpin,
UnionFind<ENode<F, C>>: UnsafeUnpin,
HashMap<ClassId<C>, EClassData<F, C, S>, S>: UnsafeUnpin,
HashMap<ClassId<ENode<F, C>>, NodeData<F, C>, S>: UnsafeUnpin,
HashMap<ENode<F, C>, ClassId<ENode<F, C>>, S>: UnsafeUnpin,
impl<F, C, S> UnwindSafe for EGraph<F, C, S>where
UnionFind<C>: UnwindSafe,
UnionFind<ENode<F, C>>: UnwindSafe,
HashMap<ClassId<C>, EClassData<F, C, S>, S>: UnwindSafe,
HashMap<ClassId<ENode<F, C>>, NodeData<F, C>, S>: UnwindSafe,
HashMap<ENode<F, C>, ClassId<ENode<F, C>>, S>: 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