Struct Array
pub struct Array<T>(/* private fields */)
where
T: Copy;Implementations§
§impl<T> Array<T>where
T: Copy,
impl<T> Array<T>where
T: Copy,
pub fn from_raw(ptr: *mut ()) -> Array<T>
pub fn null() -> Array<T>
pub fn new(class: &Il2CppClass, length: usize) -> Option<Array<T>>
pub fn is_null(self) -> bool
pub fn items(self) -> *const T
pub fn max_length(self) -> usize
pub fn len(self) -> usize
pub fn is_empty(self) -> bool
pub fn get(self, index: usize) -> T
pub fn set(self, index: usize, value: T)
pub fn iter(self) -> ArrayIter<T>
pub fn as_slice(&self) -> &[T]
pub fn as_mut_slice(&mut self) -> &mut [T]
pub fn copy_from_slice(self, src: &[T])
§impl<T> Array<T>where
T: Copy + ClassIdentity,
impl<T> Array<T>where
T: Copy + ClassIdentity,
pub fn of_len(length: usize) -> Option<Array<T>>
pub fn from_slice(src: &[T]) -> Option<Array<T>>
Trait Implementations§
§impl<T> AsRef<IlInstance> for Array<T>where
T: Copy,
impl<T> AsRef<IlInstance> for Array<T>where
T: Copy,
§fn as_ref(&self) -> &IlInstance
fn as_ref(&self) -> &IlInstance
Converts this type into a shared reference of the (usually inferred) input type.
§impl<T> ClassIdentity for Array<T>where
T: Copy + ClassIdentity,
impl<T> ClassIdentity for Array<T>where
T: Copy + ClassIdentity,
Source§impl DynValueArgs for Array<DynValue>
impl DynValueArgs for Array<DynValue>
fn try_get_i32(self, index: i32) -> i32
fn try_get_string(self, index: i32) -> Il2CppString
fn try_get_unit(self, index: i32) -> Unit
fn try_get_item(self, index: i32) -> ItemData
§impl<T> From<&[T]> for Array<T>where
T: Copy + ClassIdentity,
impl<T> From<&[T]> for Array<T>where
T: Copy + ClassIdentity,
§impl<T, const N: usize> From<[T; N]> for Array<T>where
T: Copy + ClassIdentity,
impl<T, const N: usize> From<[T; N]> for Array<T>where
T: Copy + ClassIdentity,
§impl<T> From<Array<T>> for IlInstancewhere
T: Copy,
impl<T> From<Array<T>> for IlInstancewhere
T: Copy,
§fn from(a: Array<T>) -> IlInstance
fn from(a: Array<T>) -> IlInstance
Converts to this type from the input type.
§impl<T> From<Vec<T>> for Array<T>where
T: Copy + ClassIdentity,
impl<T> From<Vec<T>> for Array<T>where
T: Copy + ClassIdentity,
§impl<T> IlType for Array<T>where
T: Copy + ClassIdentity,
impl<T> IlType for Array<T>where
T: Copy + ClassIdentity,
impl<T> Copy for Array<T>where
T: Copy,
impl<T> Send for Array<T>where
T: Copy,
impl<T> Sync for Array<T>where
T: Copy,
Auto Trait Implementations§
impl<T> Freeze for Array<T>
impl<T> RefUnwindSafe for Array<T>where
T: RefUnwindSafe,
impl<T> Unpin for Array<T>where
T: Unpin,
impl<T> UnwindSafe for Array<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Cast for Twhere
T: SystemObject,
impl<T> Cast for Twhere
T: SystemObject,
fn get_class(self) -> Class
fn is_null(self) -> bool
fn rebind_class(self, new_class: Class)
fn override_class(self) -> Class
fn is_instance_of<T>(self) -> boolwhere
T: ClassIdentity,
fn is_direct_subclass_of<T>(self) -> boolwhere
T: ClassIdentity,
fn try_cast<T>(self) -> Option<T>where
T: ClassIdentity + FromIlInstance,
§unsafe fn cast<T>(self) -> Twhere
T: ClassIdentity + FromIlInstance,
unsafe fn cast<T>(self) -> Twhere
T: ClassIdentity + FromIlInstance,
Safety Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)