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
This is similar to arrow_array::PrimitiveArray but applies to all float types (including bfloat16)
and is implemented as a trait and not a struct
Required Associated Types§
Required Methods§
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.