Skip to main content

EGraphCore

Trait EGraphCore 

Source
pub trait EGraphCore {
    type FuncSymbol;
    type Class;

    // Required method
    fn add(
        &mut self,
        node: ENode<Self::FuncSymbol, Self::Class>,
    ) -> Result<ClassId<Self::Class>, NoNode>;
}

Required Associated Types§

Required Methods§

Source

fn add( &mut self, node: ENode<Self::FuncSymbol, Self::Class>, ) -> Result<ClassId<Self::Class>, NoNode>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T: ?Sized + EGraphCore> EGraphCore for &mut T

Source§

type Class = <T as EGraphCore>::Class

Source§

type FuncSymbol = <T as EGraphCore>::FuncSymbol

Source§

fn add( &mut self, node: ENode<Self::FuncSymbol, Self::Class>, ) -> Result<ClassId<Self::Class>, NoNode>

Implementors§

Source§

impl<F: Eq + Hash, C, S: Clone + BuildHasher> EGraphCore for mid_tools::egraph::fast::EGraph<F, C, S>

Source§

impl<F: Eq + Hash, C, T: EGraphTrace<F, C>, S: Clone + BuildHasher> EGraphCore for EGraphMut<'_, F, C, T, S>

Source§

impl<F: Ord, C> EGraphCore for mid_tools::egraph::congr::EGraph<F, C>

Source§

impl<F: Ord, C> EGraphCore for mid_tools::egraph::reference::EGraph<F, C>

Source§

impl<G: EGraphCore, T> EGraphCore for SimpleWriteRef<'_, G, T>