pub trait ArrowPrimitiveType: 'static {
    type Native: ArrowNativeType;

    const DATA_TYPE: DataType;
    fn get_byte_width() -> usize { ... }
fn default_value() -> Self::Native { ... } }
Expand description

Trait bridging the dynamic-typed nature of Arrow (via DataType) with the static-typed nature of rust types (ArrowNativeType) for all types that implement ArrowNativeType.

Associated Types

Corresponding Rust native type for the primitive type.

Associated Constants

the corresponding Arrow data type of this primitive type.

Provided methods

Returns the byte width of this primitive type.

Returns a default value of this primitive type.

This is useful for aggregate array ops like sum(), mean().

Implementors