pub struct Scope { /* private fields */ }Implementations§
Source§impl Scope
impl Scope
pub fn new(base: Variable) -> Self
pub fn base(&self) -> &Variable
pub fn base_mut(&mut self) -> &mut Variable
pub fn set_base(&mut self, base: Variable)
pub fn locals(&self) -> &[(Symbol, Variable)]
pub fn clear_locals(&mut self)
pub fn set_local(&mut self, name: Symbol, value: Variable)
pub fn local(&self, name: &Symbol) -> Option<&Variable>
pub fn local_str(&self, name: &str) -> Option<&Variable>
pub fn get_str(&self, name: &str) -> Option<Variable>
pub fn get(&self, name: &Symbol) -> Option<Variable>
pub fn materialize(&self) -> Variable
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scope
impl !Send for Scope
impl !Sync for Scope
impl !UnwindSafe for Scope
impl Freeze for Scope
impl Unpin for Scope
impl UnsafeUnpin 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