Skip to main content

IDynamicExprExpressionMethods

Trait IDynamicExprExpressionMethods 

Source
pub trait IDynamicExprExpressionMethods: IDynamicExprExpression {
    // Provided methods
    fn ctor(
        self,
        exp: impl Into<Expression>,
        lcontext: impl Into<ScriptLoadingContext>,
    ) { ... }
    fn eval(self, context: impl Into<ScriptExecutionContext>) -> DynValue { ... }
    fn compile(self, bc: impl Into<ByteCode>) { ... }
    fn find_dynamic(
        self,
        context: impl Into<ScriptExecutionContext>,
    ) -> SymbolRef { ... }
}

Provided Methods§

Source

fn ctor( self, exp: impl Into<Expression>, lcontext: impl Into<ScriptLoadingContext>, )

.ctor(crate::moon_sharp::interpreter::tree::expression::Expression, crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) overload

Source

fn eval(self, context: impl Into<ScriptExecutionContext>) -> DynValue

Eval(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext) overload

Source

fn compile(self, bc: impl Into<ByteCode>)

Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode) overload

Source

fn find_dynamic(self, context: impl Into<ScriptExecutionContext>) -> SymbolRef

FindDynamic(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: IDynamicExprExpression> IDynamicExprExpressionMethods for __T

Available on crate feature moon_sharp-interpreter-tree-expressions-dynamicexprexpression only.