pub trait ArrowFloatType: Debug {
type Native: FromPrimitive + FloatToArrayType<ArrowType = Self> + AsPrimitive<f32> + Debug + Display;
type ArrayType: FloatArray<Self>;
const FLOAT_TYPE: FloatType;
const MIN: Self::Native;
const MAX: Self::Native;
// Provided method
fn empty_array() -> Self::ArrayType { ... }
}Expand description
Trait for float types used in Lance indexes
This mimics the utilities provided by arrow_array::ArrowPrimitiveType
but applies to all float types (including bfloat16)
Required Associated Constants§
Required Associated Types§
type Native: FromPrimitive + FloatToArrayType<ArrowType = Self> + AsPrimitive<f32> + Debug + Display
Sourcetype ArrayType: FloatArray<Self>
type ArrayType: FloatArray<Self>
Arrow Float Array Type.
Provided Methods§
Sourcefn empty_array() -> Self::ArrayType
fn empty_array() -> Self::ArrayType
Returns empty array of this type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".