Skip to main content

ElementOrdered

Trait ElementOrdered 

Source
pub trait ElementOrdered:
    Element
    + ElementComparison
    + ElementLimits { }
Expand description

Ordered element trait for tensor values.

This trait extends Element with ordering semantics, enabling comparison and order-dependent operations in generic Rust implementations.

Backends that implement these operations entirely at the device level do not rely on this trait. It only constrains the scalar type for generic Rust code.

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§

Source§

impl ElementOrdered for bool

Source§

impl ElementOrdered for f32

Source§

impl ElementOrdered for f64

Source§

impl ElementOrdered for i8

Source§

impl ElementOrdered for i16

Source§

impl ElementOrdered for i32

Source§

impl ElementOrdered for i64

Source§

impl ElementOrdered for u8

Source§

impl ElementOrdered for u16

Source§

impl ElementOrdered for u32

Source§

impl ElementOrdered for u64

Implementors§