Array

Trait Array 

Source
pub trait Array: Send + Sync {
    // Required methods
    fn data_type(&self) -> &DataType;
    fn len(&self) -> usize;
    fn as_any(&self) -> &dyn Any;

    // Provided method
    fn is_empty(&self) -> bool { ... }
}
Expand description

Trait for all array types

Required Methods§

Source

fn data_type(&self) -> &DataType

Get the data type of the array

Source

fn len(&self) -> usize

Get the number of elements in the array

Source

fn as_any(&self) -> &dyn Any

Convert to Any for downcasting

Provided Methods§

Source

fn is_empty(&self) -> bool

Check if the array is empty

Implementors§