Back to Eqiora docs Skip to main content

DeviceElement

Trait DeviceElement 

pub trait DeviceElement:
    Copy
    + Debug
    + Send
    + Sync
    + 'static {
    const ELEMENT_TYPE: DeviceElementType;
}
Description

Rust element types admitted at the device-buffer boundary.

Required Associated Constants§

const ELEMENT_TYPE: DeviceElementType

Corresponding Eqiora storage representation.

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 DeviceElement for f32

§

impl DeviceElement for f64

§

impl DeviceElement for i64

§

const ELEMENT_TYPE: DeviceElementType = DeviceElementType::SignedIndex64

Implementors§