[][src]Struct rhai::EvalContext

pub struct EvalContext<'e, 'a, 's, 'm, 't, 'd: 't> { /* fields omitted */ }

Context of a script evaluation process.

Implementations

impl<'e, 'a, 's, 'm, 't, 'd> EvalContext<'e, 'a, 's, 'm, 't, 'd>[src]

pub fn engine(&self) -> &'e Engine[src]

The current Engine.

pub fn imports(&self) -> &'a Imports[src]

[INTERNALS] The current set of modules imported via import statements. Available under the internals feature only.

pub fn namespace(&self) -> &'m Module[src]

The global namespace containing definition of all script-defined functions.

pub fn call_level(&self) -> usize[src]

The current nesting level of function calls.

impl<'_, '_, '_, '_, '_, '_> EvalContext<'_, '_, '_, '_, '_, '_>[src]

pub fn eval_expression_tree(
    &mut self,
    scope: &mut Scope<'_>,
    expr: &Expression<'_>
) -> Result<Dynamic, Box<EvalAltResult>>
[src]

Evaluate an expression tree.

WARNING - Low Level API

This function is very low level. It evaluates an expression from an AST.

Trait Implementations

impl<'e, 'a, 's, 'm, 't, 'd: 't> Debug for EvalContext<'e, 'a, 's, 'm, 't, 'd>[src]

Auto Trait Implementations

impl<'e, 'a, 's, 'm, 't, 'd> !RefUnwindSafe for EvalContext<'e, 'a, 's, 'm, 't, 'd>

impl<'e, 'a, 's, 'm, 't, 'd> !Send for EvalContext<'e, 'a, 's, 'm, 't, 'd>

impl<'e, 'a, 's, 'm, 't, 'd> !Sync for EvalContext<'e, 'a, 's, 'm, 't, 'd>

impl<'e, 'a, 's, 'm, 't, 'd> Unpin for EvalContext<'e, 'a, 's, 'm, 't, 'd> where
    'd: 't, 

impl<'e, 'a, 's, 'm, 't, 'd> !UnwindSafe for EvalContext<'e, 'a, 's, 'm, 't, 'd>

Blanket Implementations

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

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

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

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.