Trait number_general::DType

source ·
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§

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl DType for bool

source§

impl DType for f32

source§

impl DType for f64

source§

impl DType for i8

source§

impl DType for i16

source§

impl DType for i32

source§

impl DType for i64

source§

impl DType for u8

source§

impl DType for u16

source§

impl DType for u32

source§

impl DType for u64

source§

impl DType for Complex<f32>

source§

impl DType for Complex<f64>

Implementors§