Struct egg::SimpleScheduler
source · pub struct SimpleScheduler;
Expand description
A very simple RewriteScheduler
that runs every rewrite every
time.
Using this is basically turning off rule scheduling.
It uses the default implementation for all RewriteScheduler
methods.
This is not the default scheduler; choose it with the
with_scheduler
method.
Trait Implementations§
source§impl Debug for SimpleScheduler
impl Debug for SimpleScheduler
source§impl<L, N> RewriteScheduler<L, N> for SimpleSchedulerwhere
L: Language,
N: Analysis<L>,
impl<L, N> RewriteScheduler<L, N> for SimpleSchedulerwhere L: Language, N: Analysis<L>,
source§fn search_rewrite<'a>(
&mut self,
iteration: usize,
egraph: &EGraph<L, N>,
rewrite: &'a Rewrite<L, N>
) -> Vec<SearchMatches<'a, L>>
fn search_rewrite<'a>( &mut self, iteration: usize, egraph: &EGraph<L, N>, rewrite: &'a Rewrite<L, N> ) -> Vec<SearchMatches<'a, L>>
A hook allowing you to customize rewrite searching behavior.
Useful to implement rule management. Read more
source§fn apply_rewrite(
&mut self,
iteration: usize,
egraph: &mut EGraph<L, N>,
rewrite: &Rewrite<L, N>,
matches: Vec<SearchMatches<'_, L>>
) -> usize
fn apply_rewrite( &mut self, iteration: usize, egraph: &mut EGraph<L, N>, rewrite: &Rewrite<L, N>, matches: Vec<SearchMatches<'_, L>> ) -> usize
A hook allowing you to customize rewrite application behavior.
Useful to implement rule management. Read more
Auto Trait Implementations§
impl RefUnwindSafe for SimpleScheduler
impl Send for SimpleScheduler
impl Sync for SimpleScheduler
impl Unpin for SimpleScheduler
impl UnwindSafe for SimpleScheduler
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