pub struct LexicalEnv { /* private fields */ }Expand description
A lexical scope: a frame of name-to-value slots chained to its parent.
Cloning shares the same frame; child opens a nested
scope. Slots support deferred initialization so letrec can predefine names
before computing their values.
Implementations§
Trait Implementations§
Source§impl Clone for LexicalEnv
impl Clone for LexicalEnv
Source§fn clone(&self) -> LexicalEnv
fn clone(&self) -> LexicalEnv
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LexicalEnv
impl Debug for LexicalEnv
Auto Trait Implementations§
impl Freeze for LexicalEnv
impl RefUnwindSafe for LexicalEnv
impl Send for LexicalEnv
impl Sync for LexicalEnv
impl Unpin for LexicalEnv
impl UnsafeUnpin for LexicalEnv
impl UnwindSafe for LexicalEnv
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