Skip to main content

IFunctionDefinitionExpressionMethods

Trait IFunctionDefinitionExpressionMethods 

Source
pub trait IFunctionDefinitionExpressionMethods: IFunctionDefinitionExpression {
    // Provided methods
    fn ctor(
        self,
        lcontext: impl Into<ScriptLoadingContext>,
        uses_global_env: impl Into<bool>,
    ) { ... }
    fn ctor_2(
        self,
        lcontext: impl Into<ScriptLoadingContext>,
        push_self_param: impl Into<bool>,
        is_lambda: impl Into<bool>,
    ) { ... }
    fn ctor_3(
        self,
        lcontext: impl Into<ScriptLoadingContext>,
        push_self_param: impl Into<bool>,
        uses_global_env: impl Into<bool>,
        is_lambda: impl Into<bool>,
    ) { ... }
    fn create_lambda_body(
        self,
        lcontext: impl Into<ScriptLoadingContext>,
    ) -> Statement { ... }
    fn create_body(self, lcontext: impl Into<ScriptLoadingContext>) -> Statement { ... }
    fn build_param_list(
        self,
        lcontext: impl Into<ScriptLoadingContext>,
        push_self_param: impl Into<bool>,
        open_bracket_token: impl Into<Token>,
        is_lambda: impl Into<bool>,
    ) -> List_1<Il2CppString> { ... }
    fn define_arguments(
        self,
        paramnames: impl Into<List_1<Il2CppString>>,
        lcontext: impl Into<ScriptLoadingContext>,
    ) -> Array<SymbolRef> { ... }
    fn create_upvalue(
        self,
        scope: impl Into<BuildTimeScope>,
        symbol: impl Into<SymbolRef>,
    ) -> SymbolRef { ... }
    fn eval(self, context: impl Into<ScriptExecutionContext>) -> DynValue { ... }
    fn compile_body(
        self,
        bc: impl Into<ByteCode>,
        friendly_name: impl Into<Il2CppString>,
    ) -> i32 { ... }
    fn compile(
        self,
        bc: impl Into<ByteCode>,
        after_decl: impl Into<Func_1<i32>>,
        friendly_name: impl Into<Il2CppString>,
    ) -> i32 { ... }
    fn compile_2(self, bc: impl Into<ByteCode>) { ... }
}

Provided Methods§

Source

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

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

Source

fn ctor_2( self, lcontext: impl Into<ScriptLoadingContext>, push_self_param: impl Into<bool>, is_lambda: impl Into<bool>, )

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

Source

fn ctor_3( self, lcontext: impl Into<ScriptLoadingContext>, push_self_param: impl Into<bool>, uses_global_env: impl Into<bool>, is_lambda: impl Into<bool>, )

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

Source

fn create_lambda_body( self, lcontext: impl Into<ScriptLoadingContext>, ) -> Statement

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

Source

fn create_body(self, lcontext: impl Into<ScriptLoadingContext>) -> Statement

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

Source

fn build_param_list( self, lcontext: impl Into<ScriptLoadingContext>, push_self_param: impl Into<bool>, open_bracket_token: impl Into<Token>, is_lambda: impl Into<bool>, ) -> List_1<Il2CppString>

BuildParamList(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, bool, crate::moon_sharp::interpreter::tree::token::Token, bool) overload

Source

fn define_arguments( self, paramnames: impl Into<List_1<Il2CppString>>, lcontext: impl Into<ScriptLoadingContext>, ) -> Array<SymbolRef>

DefineArguments(crate::system::collections::generic::list_1::List_1<::unity::Il2CppString>, crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) overload

Source

fn create_upvalue( self, scope: impl Into<BuildTimeScope>, symbol: impl Into<SymbolRef>, ) -> SymbolRef

CreateUpvalue(crate::moon_sharp::interpreter::execution::buildtimescope::BuildTimeScope, crate::moon_sharp::interpreter::symbolref::SymbolRef) overload

Source

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

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

Source

fn compile_body( self, bc: impl Into<ByteCode>, friendly_name: impl Into<Il2CppString>, ) -> i32

CompileBody(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode, ::unity::Il2CppString) overload

Source

fn compile( self, bc: impl Into<ByteCode>, after_decl: impl Into<Func_1<i32>>, friendly_name: impl Into<Il2CppString>, ) -> i32

Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode, crate::system::func_1::Func_1<i32>, ::unity::Il2CppString) overload

Source

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

Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode) 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: IFunctionDefinitionExpression> IFunctionDefinitionExpressionMethods for __T

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