pub struct ErasedStack { /* private fields */ }Expand description
A stack-based evaluator for erased expressions.
Implementations§
Source§impl ErasedStack
impl ErasedStack
Sourcepub fn push(&mut self, expr: ErasedExpr)
pub fn push(&mut self, expr: ErasedExpr)
Push an expression onto the stack.
Sourcepub fn pop(&mut self) -> Option<ErasedExpr>
pub fn pop(&mut self) -> Option<ErasedExpr>
Pop an expression from the stack.
Sourcepub fn peek(&self) -> Option<&ErasedExpr>
pub fn peek(&self) -> Option<&ErasedExpr>
Peek at the top expression.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErasedStack
impl RefUnwindSafe for ErasedStack
impl Send for ErasedStack
impl Sync for ErasedStack
impl Unpin for ErasedStack
impl UnsafeUnpin for ErasedStack
impl UnwindSafe for ErasedStack
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