pub struct Int32Array(/* private fields */);Expand description
A reference-counted vector of i32 that uses Godot’s pool allocator.
Implementations§
Source§impl Int32Array
impl Int32Array
Sourcepub fn new() -> Int32Array
pub fn new() -> Int32Array
Creates an empty Int32Array.
Sourcepub fn from_variant_array(array: &VariantArray) -> Int32Array
pub fn from_variant_array(array: &VariantArray) -> Int32Array
Creates an array by trying to convert each variant.
See Variant::to_int32_array.
Sourcepub fn push_array(&mut self, array: &Int32Array)
pub fn push_array(&mut self, array: &Int32Array)
Appends an Int32Array at the end of this array.
Sourcepub fn insert(&mut self, offset: i32, val: i32) -> bool
pub fn insert(&mut self, offset: i32, val: i32) -> bool
Insert a new int at a given position in the array.
Sourcepub fn resize(&mut self, size: i32)
pub fn resize(&mut self, size: i32)
Changes the size of the array, possibly removing elements or pushing default values.
pub fn new_ref(&self) -> Int32Array
Trait Implementations§
Source§impl Default for Int32Array
impl Default for Int32Array
Source§fn default() -> Int32Array
fn default() -> Int32Array
Returns the “default value” for a type. Read more
Source§impl Drop for Int32Array
impl Drop for Int32Array
Source§impl<'l> From<&'l Int32Array> for Variant
impl<'l> From<&'l Int32Array> for Variant
Source§fn from(val: &'l Int32Array) -> Variant
fn from(val: &'l Int32Array) -> Variant
Converts to this type from the input type.
Source§impl ToVariant for Int32Array
impl ToVariant for Int32Array
fn to_variant(&self) -> Variant
fn from_variant(variant: &Variant) -> Option<Int32Array>
Auto Trait Implementations§
impl Freeze for Int32Array
impl RefUnwindSafe for Int32Array
impl Send for Int32Array
impl Sync for Int32Array
impl Unpin for Int32Array
impl UnsafeUnpin for Int32Array
impl UnwindSafe for Int32Array
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