pub trait DType {
// Required method
fn dtype() -> NumberType;
}
Expand description
Define a NumberType
for a non-Number
type such as a Rust primitive.
To access the NumberType
of a Number
, use Instance::class
, e.g. Number::from(1).class()
.
Required Methods§
fn dtype() -> NumberType
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.