Trait DeviceOps

pub trait DeviceOps:
    Clone
    + Default
    + PartialEq
    + Send
    + Sync
    + Debug {
    // Required method
    fn id(&self) -> DeviceId;
}
Expand description

The handle device trait allows to get an id for a backend device.

Required Methods§

fn id(&self) -> DeviceId

Return the device 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.

Implementations on Foreign Types§

§

impl DeviceOps for AmdDevice

§

fn id(&self) -> DeviceId

§

impl DeviceOps for CudaDevice

§

fn id(&self) -> DeviceId

§

impl DeviceOps for NdArrayDevice

§

fn id(&self) -> DeviceId

§

impl DeviceOps for WgpuDevice

§

fn id(&self) -> DeviceId

Implementors§