Skip to main content

Il2cppDictionary

Struct Il2cppDictionary 

Source
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_void

Pointer to the dictionary class

§monitor: *mut c_void

Monitor 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: i32

Number of touched slots

§empty_slot: i32

Index of the first empty slot

§count: i32

Number of elements in the dictionary

Implementations§

Source§

impl<K: Copy, V: Copy> Il2cppDictionary<K, V>

Source

pub fn keys_array(&self) -> Option<&Il2cppArray<K>>

Gets the keys array

§Returns
  • Option<&Il2cppArray<K>> - The array of keys, or None if null
Source

pub fn values_array(&self) -> Option<&Il2cppArray<V>>

Gets the values array

§Returns
  • Option<&Il2cppArray<V>> - The array of values, or None if null
Source

pub fn get_keys(&self) -> Vec<K>

Gets keys as a Rust Vec

§Returns
  • Vec<K> - A vector containing all keys
Source

pub fn get_values(&self) -> Vec<V>

Gets values as a Rust Vec

§Returns
  • Vec<V> - A vector containing all values
Source

pub fn keys_pointer(&self) -> Option<*const K>

Gets a pointer to the keys array data

§Returns
  • Option<*const K> - Pointer to the first key, or None
Source

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>

§

impl<K, V> !Send for Il2cppDictionary<K, V>

§

impl<K, V> !Sync for Il2cppDictionary<K, V>

§

impl<K, V> Unpin for Il2cppDictionary<K, V>
where K: Unpin, V: Unpin,

§

impl<K, V> UnsafeUnpin for Il2cppDictionary<K, V>

§

impl<K, V> UnwindSafe for Il2cppDictionary<K, V>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.