Trait BackendTy

Source
pub trait BackendTy {
    const ID: u8;
}
Expand description

backend id trait

this trait is used to get the id of the backend

0: Cpu

1: Cuda

2: Wgpu

Required Associated Constants§

Source

const ID: u8

beackend id

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.

Implementors§

Source§

impl BackendTy for Cpu

Source§

const ID: u8 = 0u8