[−][src]Struct egg::pattern::Rewrite
Fields
name: String
lhs: Pattern<L>
rhs: Pattern<L>
conditions: Vec<Condition<L>>
Methods
impl<L: Language> Rewrite<L>
[src]
pub fn flip(&self) -> Self
[src]
pub fn run<M: Metadata<L>>(&self, egraph: &mut EGraph<L, M>) -> Vec<Id>
[src]
pub fn search<M>(&self, egraph: &EGraph<L, M>) -> RewriteMatches<L>
[src]
Trait Implementations
impl<L: Clone + Language> Clone for Rewrite<L>
[src]
fn clone(&self) -> Rewrite<L>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<L: PartialEq + Language> PartialEq<Rewrite<L>> for Rewrite<L>
[src]
impl<L: Debug + Language> Debug for Rewrite<L>
[src]
Auto Trait Implementations
impl<L> Unpin for Rewrite<L> where
<L as Language>::Constant: Unpin,
<L as Language>::Operator: Unpin,
<L as Language>::Variable: Unpin,
<L as Language>::Wildcard: Unpin,
<L as Language>::Constant: Unpin,
<L as Language>::Operator: Unpin,
<L as Language>::Variable: Unpin,
<L as Language>::Wildcard: Unpin,
impl<L> Sync for Rewrite<L> where
<L as Language>::Constant: Sync,
<L as Language>::Operator: Sync,
<L as Language>::Variable: Sync,
<L as Language>::Wildcard: Sync,
<L as Language>::Constant: Sync,
<L as Language>::Operator: Sync,
<L as Language>::Variable: Sync,
<L as Language>::Wildcard: Sync,
impl<L> Send for Rewrite<L> where
<L as Language>::Constant: Send,
<L as Language>::Operator: Send,
<L as Language>::Variable: Send,
<L as Language>::Wildcard: Send,
<L as Language>::Constant: Send,
<L as Language>::Operator: Send,
<L as Language>::Variable: Send,
<L as Language>::Wildcard: Send,
impl<L> UnwindSafe for Rewrite<L> where
<L as Language>::Constant: UnwindSafe,
<L as Language>::Operator: UnwindSafe,
<L as Language>::Variable: UnwindSafe,
<L as Language>::Wildcard: UnwindSafe,
<L as Language>::Constant: UnwindSafe,
<L as Language>::Operator: UnwindSafe,
<L as Language>::Variable: UnwindSafe,
<L as Language>::Wildcard: UnwindSafe,
impl<L> RefUnwindSafe for Rewrite<L> where
<L as Language>::Constant: RefUnwindSafe,
<L as Language>::Operator: RefUnwindSafe,
<L as Language>::Variable: RefUnwindSafe,
<L as Language>::Wildcard: RefUnwindSafe,
<L as Language>::Constant: RefUnwindSafe,
<L as Language>::Operator: RefUnwindSafe,
<L as Language>::Variable: RefUnwindSafe,
<L as Language>::Wildcard: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,