[][src]Struct kg_tree::opath::Scope

pub struct Scope(_);

Methods

impl Scope[src]

pub fn get_func(&self, func: &str) -> Option<Ref<Box<dyn FuncCallable>>>[src]

pub fn get_method(&self, method: &str) -> Option<Ref<Box<dyn MethodCallable>>>[src]

pub fn get_var(&self, var: &str) -> Option<Ref<NodeSet>>[src]

pub fn get_var_value<T: Primitive>(&self, var: &str) -> ExprResult<T>[src]

pub fn get_var_value_opt<T: Primitive>(&self, var: &str) -> Option<T>[src]

pub fn get_var_value_or_default<T: Primitive>(&self, var: &str, def: &T) -> T[src]

pub fn get_var_value_or_empty<T: Primitive>(&self, var: &str) -> T[src]

pub fn func_names(&self) -> Vec<Symbol>[src]

pub fn method_names(&self) -> Vec<Symbol>[src]

pub fn var_names(&self) -> Vec<Symbol>[src]

Trait Implementations

impl Clone for Scope[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl AsRef<Scope> for ScopeMut[src]

impl From<ScopeMut> for Scope[src]

impl Debug for Scope[src]

impl Display for Scope[src]

Auto Trait Implementations

impl Unpin for Scope

impl !Sync for Scope

impl !Send for Scope

impl !UnwindSafe for Scope

impl !RefUnwindSafe for Scope

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> ToString for T where
    T: Display + ?Sized
[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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