pub struct ReductionStep {
pub rule: ReductionRule,
pub before: Expr,
pub after: Expr,
}Expand description
A reduction step record used for debugging and tracing.
Fields§
§rule: ReductionRuleWhich reduction rule was applied.
before: ExprThe expression before reduction.
after: ExprThe expression after reduction.
Trait Implementations§
Source§impl Clone for ReductionStep
impl Clone for ReductionStep
Source§fn clone(&self) -> ReductionStep
fn clone(&self) -> ReductionStep
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReductionStep
impl RefUnwindSafe for ReductionStep
impl Send for ReductionStep
impl Sync for ReductionStep
impl Unpin for ReductionStep
impl UnsafeUnpin for ReductionStep
impl UnwindSafe for ReductionStep
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