Struct egg::ConditionalApplier
source · [−]pub struct ConditionalApplier<C, A> {
pub condition: C,
pub applier: A,
}
Expand description
Fields
condition: C
applier: A
The inner Applier
to call once condition
passes.
Trait Implementations
sourceimpl<C, A, N, L> Applier<L, N> for ConditionalApplier<C, A> where
L: Language,
C: Condition<L, N>,
A: Applier<L, N>,
N: Analysis<L>,
impl<C, A, N, L> Applier<L, N> for ConditionalApplier<C, A> where
L: Language,
C: Condition<L, N>,
A: Applier<L, N>,
N: Analysis<L>,
sourcefn apply_one(
&self,
egraph: &mut EGraph<L, N>,
eclass: Id,
subst: &Subst,
searcher_ast: Option<&PatternAst<L>>,
rule_name: Symbol
) -> Vec<Id>
fn apply_one(
&self,
egraph: &mut EGraph<L, N>,
eclass: Id,
subst: &Subst,
searcher_ast: Option<&PatternAst<L>>,
rule_name: Symbol
) -> Vec<Id>
Apply a single substitition. Read more
sourcefn vars(&self) -> Vec<Var>
fn vars(&self) -> Vec<Var>
Returns a list of variables that this Applier assumes are bound. Read more
sourcefn apply_matches(
&self,
egraph: &mut EGraph<L, N>,
matches: &[SearchMatches<'_, L>],
rule_name: Symbol
) -> Vec<Id>
fn apply_matches(
&self,
egraph: &mut EGraph<L, N>,
matches: &[SearchMatches<'_, L>],
rule_name: Symbol
) -> Vec<Id>
Apply many substititions. Read more
sourcefn get_pattern_ast(&self) -> Option<&PatternAst<L>>
fn get_pattern_ast(&self) -> Option<&PatternAst<L>>
For patterns, get the ast directly as a reference.
sourceimpl<C: Clone, A: Clone> Clone for ConditionalApplier<C, A>
impl<C: Clone, A: Clone> Clone for ConditionalApplier<C, A>
sourcefn clone(&self) -> ConditionalApplier<C, A>
fn clone(&self) -> ConditionalApplier<C, A>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl<C, A> RefUnwindSafe for ConditionalApplier<C, A> where
A: RefUnwindSafe,
C: RefUnwindSafe,
impl<C, A> Send for ConditionalApplier<C, A> where
A: Send,
C: Send,
impl<C, A> Sync for ConditionalApplier<C, A> where
A: Sync,
C: Sync,
impl<C, A> Unpin for ConditionalApplier<C, A> where
A: Unpin,
C: Unpin,
impl<C, A> UnwindSafe for ConditionalApplier<C, A> where
A: UnwindSafe,
C: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more