pub struct Scope { /* private fields */ }Implementations§
Source§impl Scope
impl Scope
pub fn new(parent: Option<Arc<Scope>>) -> Arc<Self> ⓘ
pub fn set_parent(&self, parent: Option<Arc<Scope>>)
pub fn set(&self, key: &str, val: Value)
pub fn delete(&self, key: &str)
pub fn get(&self, key: &str) -> Option<Value>
pub fn get_default(&self, key: &str, default_value: Value) -> Value
pub fn to_map(&self) -> HashMap<String, Value>
pub fn reset(&self)
pub fn clone_scope(&self) -> Arc<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 UnsafeUnpin 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