pub trait HasDType: Clone + Default {
const DTYPE: DType;
}Expand description
Trait for types that have an associated DType.
This trait is used for type-safe tensor data extraction (e.g., to_ndarray::<T>()).
Required Associated Constants§
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.