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
Object Safety§
This trait is not object safe.