pub trait NativeDType {
// Required method
fn dtype() -> DType;
}Expand description
This trait is implemented by native Rust types that can be converted
to and from Vortex scalar values.
e.g. &str -> DType::Utf8
bool -> DType::Bool
The dtype is the one closet matching the domain of the rust type
e.g. Option<T> -> Nullable DType.
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 NativeDType for ByteBuffer
impl NativeDType for ByteBuffer
Source§impl<T> NativeDType for Option<T>where
T: NativeDType,
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> NativeDType for Option<T>where
T: NativeDType,
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.