Skip to main content

ITableConstructorMethods

Trait ITableConstructorMethods 

Source
pub trait ITableConstructorMethods: ITableConstructor {
    // Provided methods
    fn ctor(
        self,
        lcontext: impl Into<ScriptLoadingContext>,
        shared: impl Into<bool>,
    ) { ... }
    fn map_field(self, lcontext: impl Into<ScriptLoadingContext>) { ... }
    fn struct_field(self, lcontext: impl Into<ScriptLoadingContext>) { ... }
    fn array_field(self, lcontext: impl Into<ScriptLoadingContext>) { ... }
    fn compile(self, bc: impl Into<ByteCode>) { ... }
    fn eval(self, context: impl Into<ScriptExecutionContext>) -> DynValue { ... }
}

Provided Methods§

Source

fn ctor( self, lcontext: impl Into<ScriptLoadingContext>, shared: impl Into<bool>, )

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

Source

fn map_field(self, lcontext: impl Into<ScriptLoadingContext>)

MapField(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) overload

Source

fn struct_field(self, lcontext: impl Into<ScriptLoadingContext>)

StructField(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) overload

Source

fn array_field(self, lcontext: impl Into<ScriptLoadingContext>)

ArrayField(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) 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: ITableConstructor> ITableConstructorMethods for __T

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