[][src]Struct ecmascript::vm::scope::Scope

pub struct Scope { /* fields omitted */ }

Methods

impl Scope[src]

pub fn new(isolate_ref: IsolateRef, parent: Option<ScopeRef>) -> Self[src]

pub fn is_root(&self) -> bool[src]

pub fn isolate_ref(&self) -> &IsolateRef[src]

pub fn parent(&self) -> &Option<ScopeRef>[src]

pub fn get(&self, key: &str) -> Option<&Value>[src]

pub fn set(&mut self, key: String, val: Value) -> Option<Value>[src]

Trait Implementations

impl Debug for Scope[src]

Auto Trait Implementations

impl !Send for Scope

impl !Sync for Scope

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]