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§
source§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>,
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>,
source§fn get_pattern_ast(&self) -> Option<&PatternAst<L>>
fn get_pattern_ast(&self) -> Option<&PatternAst<L>>
For patterns, get the ast directly as a reference.
source§fn 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 substitution. Read more
source§fn vars(&self) -> Vec<Var>
fn vars(&self) -> Vec<Var>
Returns a list of variables that this Applier assumes are bound. Read more
source§fn 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 substitutions. 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§
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