lance_arrow::floats

Trait FloatArray

Source
pub trait FloatArray<T: ArrowFloatType + ?Sized>:
    Array
    + Clone
    + From<Vec<T::Native>>
    + 'static {
    type FloatType: ArrowFloatType;

    // Required method
    fn as_slice(&self) -> &[T::Native];
}
Expand description

FloatArray is a trait that is implemented by all float type arrays.

Required Associated Types§

Required Methods§

Source

fn as_slice(&self) -> &[T::Native]

Returns a reference to the underlying data as a slice.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FloatArray<Float16Type> for Float16Array

Source§

impl FloatArray<Float32Type> for Float32Array

Source§

impl FloatArray<Float64Type> for Float64Array

Implementors§