pub struct MutableStructArray { /* private fields */ }
Expand description

Converting a MutableStructArray into a StructArray is O(1).

Implementations

Creates a new MutableStructArray.

Create a MutableStructArray out of low-end APIs.

Panics

This function panics iff:

  • data_type is not DataType::Struct
  • The inner types of data_type are not equal to those of values
  • validity is not None and its length is different from the values’s length

Extract the low-end APIs from the MutableStructArray.

The mutable values

The values

Return the ith child array.

Reserves additional entries.

Call this once for each “row” of children you push.

Converts itself into an Array.

Shrinks the capacity of the MutableStructArray to fit its current length.

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

The length of the array.

The optional validity of the array.

Convert itself to an (immutable) Array.

Convert itself to an (immutable) atomically reference counted Array.

The DataType of the array.

Convert to Any, to enable dynamic casting.

Convert to mutable Any, to enable dynamic casting.

Adds a new null element to the array.

Shrink the array to fit its length.

Reserves additional slots to its capacity.

Whether the array is empty.

Whether index is valid / set. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.