pub trait TrxScalar:
Pod
+ Zeroable
+ Copy
+ 'static
+ Debug {
const DTYPE: DType;
// Required methods
fn to_f32(self) -> f32;
fn to_f64(self) -> f64;
}Expand description
Trait for scalar types that can be stored as TRX position coordinates.
Implementors must be [Pod] + [Zeroable] (for zero-copy casts) and
carry their DType as an associated constant.
Required Associated Constants§
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.