[−][src]Struct gdnative_bindings::Int32Array
A reference-counted vector of i32
that uses Godot's pool allocator.
Methods
impl Int32Array
[src]
pub fn new() -> Int32Array
[src]
Creates an empty Int32Array
.
pub fn from_variant_array(array: &VariantArray) -> Int32Array
[src]
Creates an array by trying to convert each variant.
See Variant::to_int32_array
.
pub fn push(&mut self, val: i32)
[src]
Appends an element at the end of the array.
pub fn push_array(&mut self, array: &Int32Array)
[src]
Appends an Int32Array
at the end of this array.
pub fn insert(&mut self, offset: i32, val: i32) -> bool
[src]
Insert a new int at a given position in the array.
pub fn invert(&mut self)
[src]
Inverts the order of the elements in the array.
pub fn remove(&mut self, idx: i32)
[src]
Removes an element at the given offset.
pub fn resize(&mut self, size: i32)
[src]
Changes the size of the array, possibly removing elements or pushing default values.
pub fn get(&self, idx: i32) -> i32
[src]
Returns a copy of the element at the given offset.
pub fn set(&mut self, idx: i32, val: i32)
[src]
Sets the value of the element at the given offset.
pub fn len(&self) -> i32
[src]
Returns the number of elements in the array.
pub fn read(&'a self) -> Aligned<ReadGuard<'a>>
[src]
pub fn write(&'a mut self) -> Aligned<WriteGuard<'a>>
[src]
pub fn new_ref(&self) -> Int32Array
[src]
Trait Implementations
impl Default for Int32Array
[src]
fn default() -> Int32Array
[src]
impl Drop for Int32Array
[src]
impl<'l> From<&'l Int32Array> for Variant
[src]
fn from(val: &'l Int32Array) -> Variant
[src]
impl FromVariant for Int32Array
[src]
fn from_variant(variant: &Variant) -> Option<Int32Array>
[src]
impl ToVariant for Int32Array
[src]
fn to_variant(&self) -> Variant
[src]
Auto Trait Implementations
impl RefUnwindSafe for Int32Array
impl Send for Int32Array
impl Sync for Int32Array
impl Unpin for Int32Array
impl UnwindSafe for Int32Array
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,