Skip to main content

ILiteralExpressionMethods

Trait ILiteralExpressionMethods 

Source
pub trait ILiteralExpressionMethods: ILiteralExpression {
    // Provided methods
    fn get_value(self) -> DynValue { ... }
    fn ctor(
        self,
        lcontext: impl Into<ScriptLoadingContext>,
        value: impl Into<DynValue>,
    ) { ... }
    fn ctor_2(
        self,
        lcontext: impl Into<ScriptLoadingContext>,
        t: impl Into<Token>,
    ) { ... }
    fn compile(self, bc: impl Into<ByteCode>) { ... }
    fn eval(self, context: impl Into<ScriptExecutionContext>) -> DynValue { ... }
}

Provided Methods§

Source

fn get_value(self) -> DynValue

get_Value() overload

Source

fn ctor( self, lcontext: impl Into<ScriptLoadingContext>, value: impl Into<DynValue>, )

.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn ctor_2(self, lcontext: impl Into<ScriptLoadingContext>, t: impl Into<Token>)

.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, crate::moon_sharp::interpreter::tree::token::Token) overload

Source

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

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

Source

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

Eval(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: ILiteralExpression> ILiteralExpressionMethods for __T

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