pub struct ErasedBetaReducer {
pub steps: u64,
pub max_steps: u64,
}Expand description
Performs beta reduction on erased expressions.
Fields§
§steps: u64§max_steps: u64Implementations§
Source§impl ErasedBetaReducer
impl ErasedBetaReducer
Sourcepub fn step(&mut self, expr: ErasedExprExt) -> ErasedExprExt
pub fn step(&mut self, expr: ErasedExprExt) -> ErasedExprExt
Perform one step of beta reduction.
Sourcepub fn is_exhausted(&self) -> bool
pub fn is_exhausted(&self) -> bool
Return whether the step limit has been reached.
Auto Trait Implementations§
impl Freeze for ErasedBetaReducer
impl RefUnwindSafe for ErasedBetaReducer
impl Send for ErasedBetaReducer
impl Sync for ErasedBetaReducer
impl Unpin for ErasedBetaReducer
impl UnsafeUnpin for ErasedBetaReducer
impl UnwindSafe for ErasedBetaReducer
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