pub struct Scope { /* private fields */ }
Implementations§
Source§impl Scope
impl Scope
pub fn new() -> Self
pub fn get_name(&self, vscope: VarScope, index: u32) -> &RcStr
pub fn get(&self, vscope: VarScope, index: u32) -> &Val
pub fn set(&mut self, vscope: VarScope, index: u32, val: Val)
pub fn push(&mut self, locals: &Vec<Var>)
pub fn push_existing_locals(&mut self, map: IndexedMap)
pub fn pop(&mut self) -> IndexedMap
pub fn push_trace(&mut self, mark: Mark)
pub fn pop_trace(&mut self)
Auto Trait Implementations§
impl Freeze for Scope
impl !RefUnwindSafe for Scope
impl !Send for Scope
impl !Sync for Scope
impl Unpin for Scope
impl !UnwindSafe for Scope
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