artichoke_core::top_self

Trait TopSelf

Source
pub trait TopSelf {
    type Value: Value;

    // Required method
    fn top_self(&mut self) -> Self::Value;
}
Expand description

Return a Value-wrapped reference to top self.

Top self is the root object that evaled code is executed within. Global methods, classes, and modules are defined in top self.

Required Associated Types§

Source

type Value: Value

Concrete Value type.

Required Methods§

Source

fn top_self(&mut self) -> Self::Value

Return a Value-wrapped reference to “top self”.

Top self is the root object that evaled code is executed within. Global methods, classes, and modules are defined in top self.

Implementors§