pub struct ErasedInterpreter {
pub steps: u64,
pub max_steps: u64,
/* private fields */
}Expand description
A small-step interpreter for erased expressions.
Fields§
§steps: u64§max_steps: u64Implementations§
Source§impl ErasedInterpreter
impl ErasedInterpreter
Sourcepub fn eval(&mut self, expr: ErasedExprExt) -> Option<ErasedValue>
pub fn eval(&mut self, expr: ErasedExprExt) -> Option<ErasedValue>
Evaluate an expression to a value.
Sourcepub fn is_exhausted(&self) -> bool
pub fn is_exhausted(&self) -> bool
Return whether the step limit was exceeded.
Auto Trait Implementations§
impl Freeze for ErasedInterpreter
impl RefUnwindSafe for ErasedInterpreter
impl Send for ErasedInterpreter
impl Sync for ErasedInterpreter
impl Unpin for ErasedInterpreter
impl UnsafeUnpin for ErasedInterpreter
impl UnwindSafe for ErasedInterpreter
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