pub trait ScalarType {
// Required method
fn dtype() -> DType;
}Expand description
A trait for types that can be used as scalar values.
This trait is implemented by native Rust types that can be converted to and from Vortex scalar values.
Unless the type is an Option<T>, the DType that is returned by dtype() should ALWAYS
be NonNullable.
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.
Implementations on Foreign Types§
Source§impl ScalarType for BufferString
impl ScalarType for BufferString
Source§impl ScalarType for ByteBuffer
impl ScalarType for ByteBuffer
Source§impl<T> ScalarType for Option<T>where
T: ScalarType,
It is common to represent a nullable type T as an Option<T>, so we implement a blanket
implementation for all Option<T> to simply be a nullable T.
impl<T> ScalarType for Option<T>where
T: ScalarType,
It is common to represent a nullable type T as an Option<T>, so we implement a blanket
implementation for all Option<T> to simply be a nullable T.