pub trait ArrowFloatType: Debug {
    type Native: FromPrimitive + FloatToArrayType<ArrowType = Self> + AsPrimitive<f32>;
    type ArrayType: FloatArray<Self>;

    const FLOAT_TYPE: FloatType;

    // Provided method
    fn empty_array() -> Self::ArrayType { ... }
}
Expand description

Trait for float types used in Arrow Array.

Required Associated Types§

source

type Native: FromPrimitive + FloatToArrayType<ArrowType = Self> + AsPrimitive<f32>

source

type ArrayType: FloatArray<Self>

Arrow Float Array Type.

Required Associated Constants§

Provided Methods§

source

fn empty_array() -> Self::ArrayType

Returns empty array of this type.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ArrowFloatType for Float16Type

source§

impl ArrowFloatType for Float32Type

source§

impl ArrowFloatType for Float64Type

Implementors§