pub struct QuotientReducer { /* private fields */ }Expand description
A stack-based quotient reduction engine.
Implementations§
Source§impl QuotientReducer
impl QuotientReducer
Sourcepub fn reduce(&mut self, expr: &Expr) -> (Expr, bool)
pub fn reduce(&mut self, expr: &Expr) -> (Expr, bool)
Try to reduce an expression. Returns the reduced expression and whether any reduction happened.
Sourcepub fn steps(&self) -> &[QuotReductionStep]
pub fn steps(&self) -> &[QuotReductionStep]
Get all recorded reduction steps.
Sourcepub fn clear_steps(&mut self)
pub fn clear_steps(&mut self)
Clear the step history.
Sourcepub fn step_count(&self) -> usize
pub fn step_count(&self) -> usize
Number of recorded steps.
Auto Trait Implementations§
impl Freeze for QuotientReducer
impl RefUnwindSafe for QuotientReducer
impl Send for QuotientReducer
impl Sync for QuotientReducer
impl Unpin for QuotientReducer
impl UnsafeUnpin for QuotientReducer
impl UnwindSafe for QuotientReducer
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