BackendScalar

Trait BackendScalar 

Source
pub trait BackendScalar<B: Backend>: Scalar { }
Expand description

Marker trait for scalar types supported by a specific backend.

This enables compile-time checking that a scalar type is supported by a particular backend (e.g., CUDA only supports f32/f64/complex).

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§