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 SimpleScheduler
impl<L, N> RewriteScheduler<L, N> for SimpleScheduler
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 Freeze for SimpleScheduler
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more