Trait arrow2::array::MutableArray[][src]

pub trait MutableArray: Debug {
    fn data_type(&self) -> &DataType;
fn len(&self) -> usize;
fn validity(&self) -> &Option<MutableBitmap>;
fn as_arc(&mut self) -> Arc<dyn Array>;
fn as_any(&self) -> &dyn Any;
fn as_mut_any(&mut self) -> &mut dyn Any;
fn push_null(&mut self); fn is_empty(&self) -> bool { ... }
fn is_valid(&self, index: usize) -> bool { ... } }
Expand description

A trait describing a mutable array; i.e. an array whose values can be changed. Mutable arrays are not Send + Sync and cannot be cloned but can be mutated in place, thereby making them useful to perform numeric operations without allocations. As in Array, concrete arrays (such as MutablePrimitiveArray) implement how they are mutated.

Required methods

The DataType of the array.

The length of the array.

The optional validity of the array.

Convert itself to an (immutable) Array.

Convert to Any, to enable dynamic casting.

Convert to mutable Any, to enable dynamic casting.

Adds a new null element to the array.

Provided methods

Whether the array is empty.

Whether index is valid / set.

Panic

Panics if index >= self.len().

Implementors