pub struct Il2cppDictionary<K: Copy, V: Copy> {
pub klass: *mut c_void,
pub monitor: *mut c_void,
pub buckets: *mut Il2cppArray<i32>,
pub entries: *mut Il2cppArray<c_void>,
pub keys: *mut Il2cppArray<K>,
pub values: *mut Il2cppArray<V>,
pub touched_slots: i32,
pub empty_slot: i32,
pub count: i32,
/* private fields */
}Fields§
§klass: *mut c_voidPointer to the dictionary class
monitor: *mut c_voidMonitor for synchronization
buckets: *mut Il2cppArray<i32>Array of bucket indices
entries: *mut Il2cppArray<c_void>Array of entries
keys: *mut Il2cppArray<K>Array of keys
values: *mut Il2cppArray<V>Array of values
touched_slots: i32Number of touched slots
empty_slot: i32Index of the first empty slot
count: i32Number of elements in the dictionary
Implementations§
Source§impl<K: Copy, V: Copy> Il2cppDictionary<K, V>
impl<K: Copy, V: Copy> Il2cppDictionary<K, V>
Sourcepub fn keys_array(&self) -> Option<&Il2cppArray<K>>
pub fn keys_array(&self) -> Option<&Il2cppArray<K>>
Sourcepub fn values_array(&self) -> Option<&Il2cppArray<V>>
pub fn values_array(&self) -> Option<&Il2cppArray<V>>
Sourcepub fn get_values(&self) -> Vec<V>
pub fn get_values(&self) -> Vec<V>
Sourcepub fn keys_pointer(&self) -> Option<*const K>
pub fn keys_pointer(&self) -> Option<*const K>
Sourcepub fn values_pointer(&self) -> Option<*const V>
pub fn values_pointer(&self) -> Option<*const V>
Gets a pointer to the values array data
§Returns
Option<*const V>- Pointer to the first value, or None
Auto Trait Implementations§
impl<K, V> Freeze for Il2cppDictionary<K, V>
impl<K, V> RefUnwindSafe for Il2cppDictionary<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> !Send for Il2cppDictionary<K, V>
impl<K, V> !Sync for Il2cppDictionary<K, V>
impl<K, V> Unpin for Il2cppDictionary<K, V>
impl<K, V> UnsafeUnpin for Il2cppDictionary<K, V>
impl<K, V> UnwindSafe for Il2cppDictionary<K, V>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more