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