Skip to main content

ITableMethods

Trait ITableMethods 

Source
pub trait ITableMethods: ITable {
Show 41 methods // Provided methods fn ctor(self, owner: impl Into<Script>) { ... } fn ctor_2( self, owner: impl Into<Script>, array_values: impl Into<Array<DynValue>>, ) { ... } fn get_owner_script(self) -> Script { ... } fn clear(self) { ... } fn get_integral_key(self, d: impl Into<f64>) -> i32 { ... } fn get_item(self, keys: impl Into<Array<Object>>) -> Object { ... } fn set_item(self, keys: impl Into<Array<Object>>, value: impl Into<Object>) { ... } fn get_item_2(self, key: impl Into<Object>) -> Object { ... } fn set_item_2(self, key: impl Into<Object>, value: impl Into<Object>) { ... } fn resolve_multiple_keys( self, keys: impl Into<Array<Object>>, ) -> (Table, IlInstance) { ... } fn append(self, value: impl Into<DynValue>) { ... } fn perform_table_set<M0: IlType + Copy + ClassIdentity>( self, list_index: impl Into<LinkedListIndex_2<M0, TablePair>>, key: impl Into<M0>, key_dyn_value: impl Into<DynValue>, value: impl Into<DynValue>, is_number: impl Into<bool>, append_key: impl Into<i32>, ) { ... } fn set(self, key: impl Into<Il2CppString>, value: impl Into<DynValue>) { ... } fn set_2(self, key: impl Into<i32>, value: impl Into<DynValue>) { ... } fn set_3(self, key: impl Into<DynValue>, value: impl Into<DynValue>) { ... } fn set_4(self, key: impl Into<Object>, value: impl Into<DynValue>) { ... } fn set_5(self, keys: impl Into<Array<Object>>, value: impl Into<DynValue>) { ... } fn get(self, key: impl Into<Il2CppString>) -> DynValue { ... } fn get_2(self, key: impl Into<i32>) -> DynValue { ... } fn get_3(self, key: impl Into<DynValue>) -> DynValue { ... } fn get_4(self, key: impl Into<Object>) -> DynValue { ... } fn get_5(self, keys: impl Into<Array<Object>>) -> DynValue { ... } fn raw_get(self, key: impl Into<Il2CppString>) -> DynValue { ... } fn raw_get_2(self, key: impl Into<i32>) -> DynValue { ... } fn raw_get_3(self, key: impl Into<DynValue>) -> DynValue { ... } fn raw_get_4(self, key: impl Into<Object>) -> DynValue { ... } fn raw_get_5(self, keys: impl Into<Array<Object>>) -> DynValue { ... } fn perform_table_remove<M0: IlType + Copy + ClassIdentity>( self, list_index: impl Into<LinkedListIndex_2<M0, TablePair>>, key: impl Into<M0>, is_number: impl Into<bool>, ) -> bool { ... } fn remove(self, key: impl Into<Il2CppString>) -> bool { ... } fn remove_2(self, key: impl Into<i32>) -> bool { ... } fn remove_3(self, key: impl Into<DynValue>) -> bool { ... } fn remove_4(self, key: impl Into<Object>) -> bool { ... } fn remove_5(self, keys: impl Into<Array<Object>>) -> bool { ... } fn collect_dead_keys(self) { ... } fn get_length(self) -> i32 { ... } fn init_next_array_keys( self, val: impl Into<DynValue>, lastpos: impl Into<bool>, ) { ... } fn get_meta_table(self) -> Table { ... } fn set_meta_table(self, value: impl Into<Table>) { ... } fn get_pairs(self) -> IEnumerable_1<TablePair> { ... } fn get_keys(self) -> IEnumerable_1<DynValue> { ... } fn get_values(self) -> IEnumerable_1<DynValue> { ... }
}

Provided Methods§

Source

fn ctor(self, owner: impl Into<Script>)

.ctor(crate::moon_sharp::interpreter::script::Script) overload

Source

fn ctor_2( self, owner: impl Into<Script>, array_values: impl Into<Array<DynValue>>, )

.ctor(crate::moon_sharp::interpreter::script::Script, ::unity::Array<crate::moon_sharp::interpreter::dynvalue::DynValue>) overload

Source

fn get_owner_script(self) -> Script

get_OwnerScript() overload

Source

fn clear(self)

Clear() overload

Source

fn get_integral_key(self, d: impl Into<f64>) -> i32

GetIntegralKey(f64) overload

Source

fn get_item(self, keys: impl Into<Array<Object>>) -> Object

get_Item(::unity::Array<crate::system::object::Object>) overload

Source

fn set_item(self, keys: impl Into<Array<Object>>, value: impl Into<Object>)

set_Item(::unity::Array<crate::system::object::Object>, crate::system::object::Object) overload

Source

fn get_item_2(self, key: impl Into<Object>) -> Object

get_Item(crate::system::object::Object) overload

Source

fn set_item_2(self, key: impl Into<Object>, value: impl Into<Object>)

set_Item(crate::system::object::Object, crate::system::object::Object) overload

Source

fn resolve_multiple_keys( self, keys: impl Into<Array<Object>>, ) -> (Table, IlInstance)

ResolveMultipleKeys(::unity::Array<crate::system::object::Object>, *mut::unity::IlInstance) overload

Source

fn append(self, value: impl Into<DynValue>)

Append(crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn perform_table_set<M0: IlType + Copy + ClassIdentity>( self, list_index: impl Into<LinkedListIndex_2<M0, TablePair>>, key: impl Into<M0>, key_dyn_value: impl Into<DynValue>, value: impl Into<DynValue>, is_number: impl Into<bool>, append_key: impl Into<i32>, )

Source

fn set(self, key: impl Into<Il2CppString>, value: impl Into<DynValue>)

Set(::unity::Il2CppString, crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn set_2(self, key: impl Into<i32>, value: impl Into<DynValue>)

Set(i32, crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn set_3(self, key: impl Into<DynValue>, value: impl Into<DynValue>)

Set(crate::moon_sharp::interpreter::dynvalue::DynValue, crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn set_4(self, key: impl Into<Object>, value: impl Into<DynValue>)

Set(crate::system::object::Object, crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn set_5(self, keys: impl Into<Array<Object>>, value: impl Into<DynValue>)

Set(::unity::Array<crate::system::object::Object>, crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn get(self, key: impl Into<Il2CppString>) -> DynValue

Get(::unity::Il2CppString) overload

Source

fn get_2(self, key: impl Into<i32>) -> DynValue

Get(i32) overload

Source

fn get_3(self, key: impl Into<DynValue>) -> DynValue

Get(crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn get_4(self, key: impl Into<Object>) -> DynValue

Get(crate::system::object::Object) overload

Source

fn get_5(self, keys: impl Into<Array<Object>>) -> DynValue

Get(::unity::Array<crate::system::object::Object>) overload

Source

fn raw_get(self, key: impl Into<Il2CppString>) -> DynValue

RawGet(::unity::Il2CppString) overload

Source

fn raw_get_2(self, key: impl Into<i32>) -> DynValue

RawGet(i32) overload

Source

fn raw_get_3(self, key: impl Into<DynValue>) -> DynValue

RawGet(crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn raw_get_4(self, key: impl Into<Object>) -> DynValue

RawGet(crate::system::object::Object) overload

Source

fn raw_get_5(self, keys: impl Into<Array<Object>>) -> DynValue

RawGet(::unity::Array<crate::system::object::Object>) overload

Source

fn perform_table_remove<M0: IlType + Copy + ClassIdentity>( self, list_index: impl Into<LinkedListIndex_2<M0, TablePair>>, key: impl Into<M0>, is_number: impl Into<bool>, ) -> bool

Source

fn remove(self, key: impl Into<Il2CppString>) -> bool

Remove(::unity::Il2CppString) overload

Source

fn remove_2(self, key: impl Into<i32>) -> bool

Remove(i32) overload

Source

fn remove_3(self, key: impl Into<DynValue>) -> bool

Remove(crate::moon_sharp::interpreter::dynvalue::DynValue) overload

Source

fn remove_4(self, key: impl Into<Object>) -> bool

Remove(crate::system::object::Object) overload

Source

fn remove_5(self, keys: impl Into<Array<Object>>) -> bool

Remove(::unity::Array<crate::system::object::Object>) overload

Source

fn collect_dead_keys(self)

CollectDeadKeys() overload

Source

fn get_length(self) -> i32

get_Length() overload

Source

fn init_next_array_keys( self, val: impl Into<DynValue>, lastpos: impl Into<bool>, )

InitNextArrayKeys(crate::moon_sharp::interpreter::dynvalue::DynValue, bool) overload

Source

fn get_meta_table(self) -> Table

get_MetaTable() overload

Source

fn set_meta_table(self, value: impl Into<Table>)

set_MetaTable(crate::moon_sharp::interpreter::table::Table) overload

Source

fn get_pairs(self) -> IEnumerable_1<TablePair>

get_Pairs() overload

Source

fn get_keys(self) -> IEnumerable_1<DynValue>

get_Keys() overload

Source

fn get_values(self) -> IEnumerable_1<DynValue>

get_Values() 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: ITable> ITableMethods for __T

Available on crate feature moon_sharp-interpreter-table only.