[][src]Struct egg::Rewrite

#[non_exhaustive]
pub struct Rewrite<L, M> { /* fields omitted */ }

Methods

impl<L: Language, M: Metadata<L>> Rewrite<L, M>[src]

pub fn new(
    name: impl Into<String>,
    long_name: impl Into<String>,
    searcher: impl Searcher<L, M> + 'static,
    applier: impl Applier<L, M> + 'static
) -> Self
[src]

pub fn name(&self) -> &str[src]

pub fn long_name(&self) -> &str[src]

pub fn search(&self, egraph: &EGraph<L, M>) -> Vec<SearchMatches>[src]

pub fn apply(
    &self,
    egraph: &mut EGraph<L, M>,
    matches: &[SearchMatches]
) -> Vec<Id>
[src]

Trait Implementations

impl<L: Clone, M: Clone> Clone for Rewrite<L, M>[src]

Auto Trait Implementations

impl<L, M> !RefUnwindSafe for Rewrite<L, M>

impl<L, M> !Send for Rewrite<L, M>

impl<L, M> !Sync for Rewrite<L, M>

impl<L, M> Unpin for Rewrite<L, M>

impl<L, M> !UnwindSafe for Rewrite<L, M>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.