pub trait IByteCodeMethods: IByteCode {
Show 44 methods
// Provided methods
fn get_script(self) -> Script { ... }
fn set_script(self, value: impl Into<Script>) { ... }
fn ctor(self, script: impl Into<Script>) { ... }
fn push_source_ref(self, sref: impl Into<SourceRef>) { ... }
fn pop_source_ref(self) { ... }
fn dump(self, file: impl Into<Il2CppString>) { ... }
fn get_jump_point_for_next_instruction(self) -> i32 { ... }
fn get_jump_point_for_last_instruction(self) -> i32 { ... }
fn get_last_instruction(self) -> Instruction { ... }
fn append_instruction(self, c: impl Into<Instruction>) -> Instruction { ... }
fn emit_nop(self, comment: impl Into<Il2CppString>) -> Instruction { ... }
fn emit_invalid(self, type: impl Into<Il2CppString>) -> Instruction { ... }
fn emit_pop(self, num: impl Into<i32>) -> Instruction { ... }
fn emit_call(
self,
arg_count: impl Into<i32>,
debug_name: impl Into<Il2CppString>,
) { ... }
fn emit_this_call(
self,
arg_count: impl Into<i32>,
debug_name: impl Into<Il2CppString>,
) { ... }
fn emit_literal(self, value: impl Into<DynValue>) -> Instruction { ... }
fn emit_jump(
self,
jump_op_code: impl Into<OpCode>,
idx: impl Into<i32>,
opt_par: impl Into<i32>,
) -> Instruction { ... }
fn emit_mk_tuple(self, cnt: impl Into<i32>) -> Instruction { ... }
fn emit_operator(self, opcode: impl Into<OpCode>) -> Instruction { ... }
fn emit_debug(self, str: impl Into<Il2CppString>) { ... }
fn emit_enter(
self,
runtime_scope_block: impl Into<RuntimeScopeBlock>,
) -> Instruction { ... }
fn emit_leave(
self,
runtime_scope_block: impl Into<RuntimeScopeBlock>,
) -> Instruction { ... }
fn emit_exit(
self,
runtime_scope_block: impl Into<RuntimeScopeBlock>,
) -> Instruction { ... }
fn emit_clean(
self,
runtime_scope_block: impl Into<RuntimeScopeBlock>,
) -> Instruction { ... }
fn emit_closure(
self,
symbols: impl Into<Array<SymbolRef>>,
jmpnum: impl Into<i32>,
) -> Instruction { ... }
fn emit_args(self, symbols: impl Into<Array<SymbolRef>>) -> Instruction { ... }
fn emit_ret(self, retvals: impl Into<i32>) -> Instruction { ... }
fn emit_to_num(self, stage: impl Into<i32>) -> Instruction { ... }
fn emit_incr(self, i: impl Into<i32>) -> Instruction { ... }
fn emit_new_table(self, shared: impl Into<bool>) -> Instruction { ... }
fn emit_iter_prep(self) -> Instruction { ... }
fn emit_exp_tuple(self, stack_offset: impl Into<i32>) -> Instruction { ... }
fn emit_iter_upd(self) -> Instruction { ... }
fn emit_meta(
self,
func_name: impl Into<Il2CppString>,
meta_type: impl Into<OpCodeMetadataType>,
value: impl Into<DynValue>,
) -> Instruction { ... }
fn emit_begin_fn(
self,
stack_frame: impl Into<RuntimeScopeFrame>,
) -> Instruction { ... }
fn emit_scalar(self) -> Instruction { ... }
fn emit_load(self, sym: impl Into<SymbolRef>) -> i32 { ... }
fn emit_store(
self,
sym: impl Into<SymbolRef>,
stackofs: impl Into<i32>,
tupleidx: impl Into<i32>,
) -> i32 { ... }
fn emit_tbl_init_n(self) -> Instruction { ... }
fn emit_tbl_init_i(self, lastpos: impl Into<bool>) -> Instruction { ... }
fn emit_index(
self,
index: impl Into<DynValue>,
is_name_index: impl Into<bool>,
is_exp_list: impl Into<bool>,
) -> Instruction { ... }
fn emit_index_set(
self,
stackofs: impl Into<i32>,
tupleidx: impl Into<i32>,
index: impl Into<DynValue>,
is_name_index: impl Into<bool>,
is_exp_list: impl Into<bool>,
) -> Instruction { ... }
fn emit_copy(self, numval: impl Into<i32>) -> Instruction { ... }
fn emit_swap(self, p1: impl Into<i32>, p2: impl Into<i32>) -> Instruction { ... }
}Provided Methods§
Sourcefn get_script(self) -> Script
fn get_script(self) -> Script
get_Script() overload
Sourcefn set_script(self, value: impl Into<Script>)
fn set_script(self, value: impl Into<Script>)
set_Script(crate::moon_sharp::interpreter::script::Script) overload
Sourcefn ctor(self, script: impl Into<Script>)
fn ctor(self, script: impl Into<Script>)
.ctor(crate::moon_sharp::interpreter::script::Script) overload
Sourcefn push_source_ref(self, sref: impl Into<SourceRef>)
fn push_source_ref(self, sref: impl Into<SourceRef>)
PushSourceRef(crate::moon_sharp::interpreter::debugging::sourceref::SourceRef) overload
Sourcefn pop_source_ref(self)
fn pop_source_ref(self)
PopSourceRef() overload
Sourcefn dump(self, file: impl Into<Il2CppString>)
fn dump(self, file: impl Into<Il2CppString>)
Dump(::unity::Il2CppString) overload
Sourcefn get_jump_point_for_next_instruction(self) -> i32
fn get_jump_point_for_next_instruction(self) -> i32
GetJumpPointForNextInstruction() overload
Sourcefn get_jump_point_for_last_instruction(self) -> i32
fn get_jump_point_for_last_instruction(self) -> i32
GetJumpPointForLastInstruction() overload
Sourcefn get_last_instruction(self) -> Instruction
fn get_last_instruction(self) -> Instruction
GetLastInstruction() overload
Sourcefn append_instruction(self, c: impl Into<Instruction>) -> Instruction
fn append_instruction(self, c: impl Into<Instruction>) -> Instruction
AppendInstruction(crate::moon_sharp::interpreter::execution::vm::instruction::Instruction) overload
Sourcefn emit_nop(self, comment: impl Into<Il2CppString>) -> Instruction
fn emit_nop(self, comment: impl Into<Il2CppString>) -> Instruction
Emit_Nop(::unity::Il2CppString) overload
Sourcefn emit_invalid(self, type: impl Into<Il2CppString>) -> Instruction
fn emit_invalid(self, type: impl Into<Il2CppString>) -> Instruction
Emit_Invalid(::unity::Il2CppString) overload
Sourcefn emit_pop(self, num: impl Into<i32>) -> Instruction
fn emit_pop(self, num: impl Into<i32>) -> Instruction
Emit_Pop(i32) overload
Sourcefn emit_call(
self,
arg_count: impl Into<i32>,
debug_name: impl Into<Il2CppString>,
)
fn emit_call( self, arg_count: impl Into<i32>, debug_name: impl Into<Il2CppString>, )
Emit_Call(i32, ::unity::Il2CppString) overload
Sourcefn emit_this_call(
self,
arg_count: impl Into<i32>,
debug_name: impl Into<Il2CppString>,
)
fn emit_this_call( self, arg_count: impl Into<i32>, debug_name: impl Into<Il2CppString>, )
Emit_ThisCall(i32, ::unity::Il2CppString) overload
Sourcefn emit_literal(self, value: impl Into<DynValue>) -> Instruction
fn emit_literal(self, value: impl Into<DynValue>) -> Instruction
Emit_Literal(crate::moon_sharp::interpreter::dynvalue::DynValue) overload
Sourcefn emit_jump(
self,
jump_op_code: impl Into<OpCode>,
idx: impl Into<i32>,
opt_par: impl Into<i32>,
) -> Instruction
fn emit_jump( self, jump_op_code: impl Into<OpCode>, idx: impl Into<i32>, opt_par: impl Into<i32>, ) -> Instruction
Emit_Jump(crate::moon_sharp::interpreter::execution::vm::opcode::OpCode, i32, i32) overload
Sourcefn emit_mk_tuple(self, cnt: impl Into<i32>) -> Instruction
fn emit_mk_tuple(self, cnt: impl Into<i32>) -> Instruction
Emit_MkTuple(i32) overload
Sourcefn emit_operator(self, opcode: impl Into<OpCode>) -> Instruction
fn emit_operator(self, opcode: impl Into<OpCode>) -> Instruction
Emit_Operator(crate::moon_sharp::interpreter::execution::vm::opcode::OpCode) overload
Sourcefn emit_debug(self, str: impl Into<Il2CppString>)
fn emit_debug(self, str: impl Into<Il2CppString>)
Emit_Debug(::unity::Il2CppString) overload
Sourcefn emit_enter(
self,
runtime_scope_block: impl Into<RuntimeScopeBlock>,
) -> Instruction
fn emit_enter( self, runtime_scope_block: impl Into<RuntimeScopeBlock>, ) -> Instruction
Emit_Enter(crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock) overload
Sourcefn emit_leave(
self,
runtime_scope_block: impl Into<RuntimeScopeBlock>,
) -> Instruction
fn emit_leave( self, runtime_scope_block: impl Into<RuntimeScopeBlock>, ) -> Instruction
Emit_Leave(crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock) overload
Sourcefn emit_exit(
self,
runtime_scope_block: impl Into<RuntimeScopeBlock>,
) -> Instruction
fn emit_exit( self, runtime_scope_block: impl Into<RuntimeScopeBlock>, ) -> Instruction
Emit_Exit(crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock) overload
Sourcefn emit_clean(
self,
runtime_scope_block: impl Into<RuntimeScopeBlock>,
) -> Instruction
fn emit_clean( self, runtime_scope_block: impl Into<RuntimeScopeBlock>, ) -> Instruction
Emit_Clean(crate::moon_sharp::interpreter::execution::runtimescopeblock::RuntimeScopeBlock) overload
Sourcefn emit_closure(
self,
symbols: impl Into<Array<SymbolRef>>,
jmpnum: impl Into<i32>,
) -> Instruction
fn emit_closure( self, symbols: impl Into<Array<SymbolRef>>, jmpnum: impl Into<i32>, ) -> Instruction
Emit_Closure(::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>, i32) overload
Sourcefn emit_args(self, symbols: impl Into<Array<SymbolRef>>) -> Instruction
fn emit_args(self, symbols: impl Into<Array<SymbolRef>>) -> Instruction
Emit_Args(::unity::Array<crate::moon_sharp::interpreter::symbolref::SymbolRef>) overload
Sourcefn emit_ret(self, retvals: impl Into<i32>) -> Instruction
fn emit_ret(self, retvals: impl Into<i32>) -> Instruction
Emit_Ret(i32) overload
Sourcefn emit_to_num(self, stage: impl Into<i32>) -> Instruction
fn emit_to_num(self, stage: impl Into<i32>) -> Instruction
Emit_ToNum(i32) overload
Sourcefn emit_incr(self, i: impl Into<i32>) -> Instruction
fn emit_incr(self, i: impl Into<i32>) -> Instruction
Emit_Incr(i32) overload
Sourcefn emit_new_table(self, shared: impl Into<bool>) -> Instruction
fn emit_new_table(self, shared: impl Into<bool>) -> Instruction
Emit_NewTable(bool) overload
Sourcefn emit_iter_prep(self) -> Instruction
fn emit_iter_prep(self) -> Instruction
Emit_IterPrep() overload
Sourcefn emit_exp_tuple(self, stack_offset: impl Into<i32>) -> Instruction
fn emit_exp_tuple(self, stack_offset: impl Into<i32>) -> Instruction
Emit_ExpTuple(i32) overload
Sourcefn emit_iter_upd(self) -> Instruction
fn emit_iter_upd(self) -> Instruction
Emit_IterUpd() overload
Sourcefn emit_meta(
self,
func_name: impl Into<Il2CppString>,
meta_type: impl Into<OpCodeMetadataType>,
value: impl Into<DynValue>,
) -> Instruction
fn emit_meta( self, func_name: impl Into<Il2CppString>, meta_type: impl Into<OpCodeMetadataType>, value: impl Into<DynValue>, ) -> Instruction
Emit_Meta(::unity::Il2CppString, crate::moon_sharp::interpreter::execution::vm::opcodemetadatatype::OpCodeMetadataType, crate::moon_sharp::interpreter::dynvalue::DynValue) overload
Sourcefn emit_begin_fn(self, stack_frame: impl Into<RuntimeScopeFrame>) -> Instruction
fn emit_begin_fn(self, stack_frame: impl Into<RuntimeScopeFrame>) -> Instruction
Emit_BeginFn(crate::moon_sharp::interpreter::execution::runtimescopeframe::RuntimeScopeFrame) overload
Sourcefn emit_scalar(self) -> Instruction
fn emit_scalar(self) -> Instruction
Emit_Scalar() overload
Sourcefn emit_load(self, sym: impl Into<SymbolRef>) -> i32
fn emit_load(self, sym: impl Into<SymbolRef>) -> i32
Emit_Load(crate::moon_sharp::interpreter::symbolref::SymbolRef) overload
Sourcefn emit_store(
self,
sym: impl Into<SymbolRef>,
stackofs: impl Into<i32>,
tupleidx: impl Into<i32>,
) -> i32
fn emit_store( self, sym: impl Into<SymbolRef>, stackofs: impl Into<i32>, tupleidx: impl Into<i32>, ) -> i32
Emit_Store(crate::moon_sharp::interpreter::symbolref::SymbolRef, i32, i32) overload
Sourcefn emit_tbl_init_n(self) -> Instruction
fn emit_tbl_init_n(self) -> Instruction
Emit_TblInitN() overload
Sourcefn emit_tbl_init_i(self, lastpos: impl Into<bool>) -> Instruction
fn emit_tbl_init_i(self, lastpos: impl Into<bool>) -> Instruction
Emit_TblInitI(bool) overload
Sourcefn emit_index(
self,
index: impl Into<DynValue>,
is_name_index: impl Into<bool>,
is_exp_list: impl Into<bool>,
) -> Instruction
fn emit_index( self, index: impl Into<DynValue>, is_name_index: impl Into<bool>, is_exp_list: impl Into<bool>, ) -> Instruction
Emit_Index(crate::moon_sharp::interpreter::dynvalue::DynValue, bool, bool) overload
Sourcefn emit_index_set(
self,
stackofs: impl Into<i32>,
tupleidx: impl Into<i32>,
index: impl Into<DynValue>,
is_name_index: impl Into<bool>,
is_exp_list: impl Into<bool>,
) -> Instruction
fn emit_index_set( self, stackofs: impl Into<i32>, tupleidx: impl Into<i32>, index: impl Into<DynValue>, is_name_index: impl Into<bool>, is_exp_list: impl Into<bool>, ) -> Instruction
Emit_IndexSet(i32, i32, crate::moon_sharp::interpreter::dynvalue::DynValue, bool, bool) overload
Sourcefn emit_copy(self, numval: impl Into<i32>) -> Instruction
fn emit_copy(self, numval: impl Into<i32>) -> Instruction
Emit_Copy(i32) overload
Sourcefn emit_swap(self, p1: impl Into<i32>, p2: impl Into<i32>) -> Instruction
fn emit_swap(self, p1: impl Into<i32>, p2: impl Into<i32>) -> Instruction
Emit_Swap(i32, i32) 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: IByteCode> IByteCodeMethods for __T
moon_sharp-interpreter-execution-vm-bytecode only.