WithDType

Trait WithDType 

Source
pub trait WithDType:
    Sized
    + Copy
    + PartialOrd
    + PartialEq
    + Display
    + 'static
    + Send
    + Sync {
    const DTYPE: DType;
}

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.

Implementations on Foreign Types§

Source§

impl WithDType for bool

Source§

const DTYPE: DType = DType::Bool

Source§

impl WithDType for f32

Source§

const DTYPE: DType = DType::F32

Source§

impl WithDType for f64

Source§

const DTYPE: DType = DType::F64

Source§

impl WithDType for i8

Source§

const DTYPE: DType = DType::I8

Source§

impl WithDType for i16

Source§

const DTYPE: DType = DType::I16

Source§

impl WithDType for i32

Source§

const DTYPE: DType = DType::I32

Source§

impl WithDType for u8

Source§

const DTYPE: DType = DType::U8

Source§

impl WithDType for u16

Source§

const DTYPE: DType = DType::U16

Source§

impl WithDType for u32

Source§

const DTYPE: DType = DType::U32

Source§

impl WithDType for usize

Source§

const DTYPE: DType = DType::U32

Implementors§