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§
Sourcefn ctor(
self,
lcontext: impl Into<ScriptLoadingContext>,
uses_global_env: impl Into<bool>,
)
fn ctor( self, lcontext: impl Into<ScriptLoadingContext>, uses_global_env: impl Into<bool>, )
.ctor(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext, bool) overload
Sourcefn ctor_2(
self,
lcontext: impl Into<ScriptLoadingContext>,
push_self_param: impl Into<bool>,
is_lambda: impl Into<bool>,
)
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
Sourcefn 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 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
Sourcefn create_lambda_body(
self,
lcontext: impl Into<ScriptLoadingContext>,
) -> Statement
fn create_lambda_body( self, lcontext: impl Into<ScriptLoadingContext>, ) -> Statement
CreateLambdaBody(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) overload
Sourcefn create_body(self, lcontext: impl Into<ScriptLoadingContext>) -> Statement
fn create_body(self, lcontext: impl Into<ScriptLoadingContext>) -> Statement
CreateBody(crate::moon_sharp::interpreter::execution::scriptloadingcontext::ScriptLoadingContext) overload
Sourcefn 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 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
Sourcefn define_arguments(
self,
paramnames: impl Into<List_1<Il2CppString>>,
lcontext: impl Into<ScriptLoadingContext>,
) -> Array<SymbolRef>
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
Sourcefn create_upvalue(
self,
scope: impl Into<BuildTimeScope>,
symbol: impl Into<SymbolRef>,
) -> SymbolRef
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
Sourcefn eval(self, context: impl Into<ScriptExecutionContext>) -> DynValue
fn eval(self, context: impl Into<ScriptExecutionContext>) -> DynValue
Eval(crate::moon_sharp::interpreter::scriptexecutioncontext::ScriptExecutionContext) overload
Sourcefn compile_body(
self,
bc: impl Into<ByteCode>,
friendly_name: impl Into<Il2CppString>,
) -> i32
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
Sourcefn compile(
self,
bc: impl Into<ByteCode>,
after_decl: impl Into<Func_1<i32>>,
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
Compile(crate::moon_sharp::interpreter::execution::vm::bytecode::ByteCode, crate::system::func_1::Func_1<i32>, ::unity::Il2CppString) 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§
impl<__T: IFunctionDefinitionExpression> IFunctionDefinitionExpressionMethods for __T
moon_sharp-interpreter-tree-expressions-functiondefinitionexpression only.