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

The Arrow’s equivalent to a mutable Vec<Option<[u8; size]>>. Converting a MutableFixedSizeBinaryArray into a FixedSizeBinaryArray is O(1).

Implementation

This struct does not allocate a validity until one is required (i.e. push a null to it).

Implementations

constructs a new iterator

Returns iterator over the values of MutableFixedSizeBinaryArray

Canonical method to create a new MutableFixedSizeBinaryArray.

Creates a new empty MutableFixedSizeBinaryArray.

Creates a new MutableFixedSizeBinaryArray with capacity for capacity entries.

tries to push a new entry to MutableFixedSizeBinaryArray.

Error

Errors iff the size of value is not equal to its own size.

pushes a new entry to MutableFixedSizeBinaryArray.

Panics

Panics iff the size of value is not equal to its own size.

Pop the last entry from MutableFixedSizeBinaryArray. This function returns None iff this array is empty

Creates a new MutableFixedSizeBinaryArray from an iterator of values.

Errors

Errors iff the size of any of the value is not equal to its own size.

returns the (fixed) size of the MutableFixedSizeBinaryArray.

Returns the capacity of this array

Returns the element at index i as &[u8]

Returns the element at index i as &[u8]

Safety

Assumes that the i < self.len.

Reserves additional slots.

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

Accessors

Returns its values.

Returns a mutable slice of values.

Trait Implementations

Formats the value using the given formatter. Read more

Converts to this type from the input type.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

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.

Reserves additional slots to its capacity.

Shrink the array to fit its length.

Whether the array is empty.

Whether index is valid / set. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. 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.