Skip to main content

IIndexExpressionMethods

Trait IIndexExpressionMethods 

Source
pub trait IIndexExpressionMethods: IIndexExpression {
    // Provided methods
    fn ctor(
        self,
        base_exp: impl Into<Expression>,
        index_exp: impl Into<Expression>,
        lcontext: impl Into<ScriptLoadingContext>,
    ) { ... }
    fn ctor_2(
        self,
        base_exp: impl Into<Expression>,
        name: impl Into<Il2CppString>,
        lcontext: impl Into<ScriptLoadingContext>,
    ) { ... }
    fn compile(self, bc: impl Into<ByteCode>) { ... }
    fn compile_assignment(
        self,
        bc: impl Into<ByteCode>,
        stackofs: impl Into<i32>,
        tupleidx: impl Into<i32>,
    ) { ... }
    fn eval(self, context: impl Into<ScriptExecutionContext>) -> DynValue { ... }
}

Provided Methods§

Source

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

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

Source

fn ctor_2( self, base_exp: impl Into<Expression>, name: impl Into<Il2CppString>, lcontext: impl Into<ScriptLoadingContext>, )

.ctor(crate::moon_sharp::interpreter::tree::expression::Expression, ::unity::Il2CppString, 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 compile_assignment( self, bc: impl Into<ByteCode>, stackofs: impl Into<i32>, tupleidx: impl Into<i32>, )

CompileAssignment(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode, i32, i32) 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: IIndexExpression> IIndexExpressionMethods for __T

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