Trait ArrayElement

Source
pub trait ArrayElement:
    Copy
    + Clone
    + WritableElement
    + Num
    + FromPrimitive
    + Default
    + PartialOrd
    + AddAssign
    + ScalarOperand
    + IsNan
    + MinMax
    + Sum
    + HasSqrt
    + Sync
    + Send
    + 'static { }
Expand description

This is the trait that represents the types that are supported by TensorType

Most of the time this is the only trait needed to make a function generic over the types supported by TensorType

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§