Struct gdnative::VariantArray [] [src]

pub struct VariantArray(_);

A reference-counted Variant vector. Godot's generic array data type. Negative indices can be used to count from the right.

Methods

impl VariantArray
[src]

[src]

Creates an empty VariantArray.

[src]

Sets the value of the element at the given offset.

[src]

Returns a copy of the element at the given offset.

[src]

Returns a reference to the element at the given offset.

[src]

Returns a mutable reference to the element at the given offset.

[src]

[src]

Clears the array, resizing to 0.

[src]

[src]

[src]

Returns true if the VariantArray contains no elements.

[src]

Returns the number of elements in the array.

[src]

Appends an element at the end of the array.

[src]

Removes an element at the end of the array.

[src]

Appends an element to the front of the array.

[src]

Removes an element at the front of the array.

[src]

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

[src]

Searches the array for a value and returns its index. Pass an initial search index as the second argument. Returns -1 if value is not found.

[src]

Returns true if the VariantArray contains the specified value.

[src]

[src]

Searches the array in reverse order. Pass an initial search index as the second argument. If negative, the start index is considered relative to the end of the array.

[src]

Searches the array in reverse order for a value. Returns its index or -1 if not found.

[src]

Inverts the order of the elements in the array.

[src]

Return a hashed i32 value representing the array contents.

[src]

[src]

Trait Implementations

impl<'l> From<&'l VariantArray> for Variant
[src]

[src]

Performs the conversion.

impl Drop for VariantArray
[src]

[src]

Executes the destructor for this type. Read more

impl Default for VariantArray
[src]

[src]

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

impl GodotType for VariantArray
[src]

[src]

[src]

[src]

Auto Trait Implementations

impl Send for VariantArray

impl Sync for VariantArray