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§
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.