Struct gdnative_physics::common::ColorArray[]

pub struct ColorArray(_);

A reference-counted vector of ColorArray that uses Godot's pool allocator.

Methods

impl ColorArray

Creates an empty ColorArray.

Creates an array by trying to convert each variant.

See Variant::to_color_array.

Appends an element at the end of the array

Appends a ColorArray at the end of this array.

Insert a new int at a given position in the array.

Inverts the order of the elements in the array.

Removes an element at the given offset.

Changes the size of the array, possibly removing elements or pushing default values.

Returns a copy of the element at the given offset.

Sets the value of the element at the given offset.

Returns the number of elements in the array.

Trait Implementations

impl ToVariant for ColorArray

impl<'l> From<&'l ColorArray> for Variant

Performs the conversion.

impl Default for ColorArray

Returns the "default value" for a type. Read more

impl Drop for ColorArray

Executes the destructor for this type. Read more

Auto Trait Implementations

impl Send for ColorArray

impl Sync for ColorArray