pub struct ErasedScope { /* private fields */ }Expand description
A scope for erased code: a stack of local bindings.
Implementations§
Source§impl ErasedScope
impl ErasedScope
Sourcepub fn bind(&mut self, name: &str, val: ErasedValue)
pub fn bind(&mut self, name: &str, val: ErasedValue)
Bind a variable.
Sourcepub fn lookup(&self, name: &str) -> Option<&ErasedValue>
pub fn lookup(&self, name: &str) -> Option<&ErasedValue>
Look up a variable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErasedScope
impl RefUnwindSafe for ErasedScope
impl Send for ErasedScope
impl Sync for ErasedScope
impl Unpin for ErasedScope
impl UnsafeUnpin for ErasedScope
impl UnwindSafe for ErasedScope
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