Skip to main content

KernelStorageElement

Trait KernelStorageElement 

pub trait KernelStorageElement:
    Sealed
    + Copy
    + 'static {
    const DTYPE: KernelDType;
}
Expand description

A scalar type that can safely witness storage for an erased kernel view.

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§

§

impl KernelStorageElement for bool

§

const DTYPE: KernelDType = KernelDType::Bool

§

impl KernelStorageElement for f32

§

const DTYPE: KernelDType = KernelDType::F32

§

impl KernelStorageElement for f64

§

const DTYPE: KernelDType = KernelDType::F64

§

impl KernelStorageElement for i32

§

const DTYPE: KernelDType = KernelDType::I32

§

impl KernelStorageElement for i64

§

const DTYPE: KernelDType = KernelDType::I64

§

impl KernelStorageElement for Complex<f32>

§

const DTYPE: KernelDType = KernelDType::C32

§

impl KernelStorageElement for Complex<f64>

§

const DTYPE: KernelDType = KernelDType::C64

Implementors§