pub struct MutableDictionaryArray<K: DictionaryKey, M: MutableArray> { /* private fields */ }
Expand description

A mutable, strong-typed version of DictionaryArray.

Example

Building a UTF8 dictionary with i32 keys.

let mut array: MutableDictionaryArray<i32, MutableUtf8Array<i32>> = MutableDictionaryArray::new();
array.try_push(Some("A"))?;
array.try_push(Some("B"))?;
array.push_null();
array.try_push(Some("C"))?;

Implementations§

Creates an empty MutableDictionaryArray.

pushes a null value

returns a reference to the inner values.

converts itself into Arc<dyn Array>

converts itself into Box<dyn Array>

Reserves additional slots.

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

Returns the dictionary map

Returns the dictionary keys

Trait Implementations§

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Converts to this type from the input type.
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.
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
Fallible version of Extend::extend.
Tries to push a new element.

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
Converts to this type from the input type.

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.