pub trait Device:
Clone
+ Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> &'static str;
fn is_cpu(&self) -> bool;
fn is_cuda(&self) -> bool;
}Expand description
Trait for compute devices (CPU, CUDA, etc.)
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".