Struct gdnative_core::Float32Array [−][src]
pub struct Float32Array(_);
A reference-counted vector of f32 that uses Godot's pool allocator.
Methods
impl Float32Array[src]
impl Float32Arraypub fn new() -> Self[src]
pub fn new() -> SelfCreates an empty Float32Array.
pub fn from_variant_array(array: &VariantArray) -> Self[src]
pub fn from_variant_array(array: &VariantArray) -> SelfCreates an array by trying to convert each variant.
See Variant::to_float32_array.
pub fn push(&mut self, val: f32)[src]
pub fn push(&mut self, val: f32)Appends an element at the end of the array.
pub fn push_array(&mut self, array: &Float32Array)[src]
pub fn push_array(&mut self, array: &Float32Array)Appends a Float32Array at the end of this array.
pub fn insert(&mut self, offset: i32, val: f32) -> bool[src]
pub fn insert(&mut self, offset: i32, val: f32) -> boolInsert a new f32 at a given position in the array.
pub fn invert(&mut self)[src]
pub fn invert(&mut self)Inverts the order of the elements in the array.
pub fn remove(&mut self, idx: i32)[src]
pub fn remove(&mut self, idx: i32)Removes an element at the given offset.
pub fn resize(&mut self, size: i32)[src]
pub fn resize(&mut self, size: i32)Changes the size of the array, possibly removing elements or pushing default values.
pub fn get(&self, idx: i32) -> f32[src]
pub fn get(&self, idx: i32) -> f32Returns a copy of the element at the given offset.
pub fn set(&mut self, idx: i32, val: f32)[src]
pub fn set(&mut self, idx: i32, val: f32)Sets the value of the element at the given offset.
pub fn len(&self) -> i32[src]
pub fn len(&self) -> i32Returns the number of elements in the array.
pub fn new_ref(&self) -> Float32Array[src]
pub fn new_ref(&self) -> Float32ArrayTrait Implementations
impl<'l> From<&'l Float32Array> for Variant[src]
impl<'l> From<&'l Float32Array> for Variantfn from(val: &'l Float32Array) -> Variant[src]
fn from(val: &'l Float32Array) -> VariantPerforms the conversion.
impl Drop for Float32Array[src]
impl Drop for Float32Arrayimpl Default for Float32Array[src]
impl Default for Float32Arrayimpl ToVariant for Float32Array[src]
impl ToVariant for Float32Arrayfn to_variant(&self) -> Variant[src]
fn to_variant(&self) -> Variantfn from_variant(variant: &Variant) -> Option<Self>[src]
fn from_variant(variant: &Variant) -> Option<Self>Auto Trait Implementations
impl Send for Float32Array
impl Send for Float32Arrayimpl Sync for Float32Array
impl Sync for Float32Array