burn::tensor

Trait ElementComparison

pub trait ElementComparison {
    // Required method
    fn cmp(&self, other: &Self) -> Ordering;
}
Expand description

Element ordering trait.

Required Methods§

fn cmp(&self, other: &Self) -> Ordering

Returns and Ordering between self and other.

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 ElementComparison for bool

§

fn cmp(&self, other: &bool) -> Ordering

§

impl ElementComparison for f32

§

fn cmp(&self, other: &f32) -> Ordering

§

impl ElementComparison for f64

§

fn cmp(&self, other: &f64) -> Ordering

§

impl ElementComparison for i8

§

fn cmp(&self, other: &i8) -> Ordering

§

impl ElementComparison for i16

§

fn cmp(&self, other: &i16) -> Ordering

§

impl ElementComparison for i32

§

fn cmp(&self, other: &i32) -> Ordering

§

impl ElementComparison for i64

§

fn cmp(&self, other: &i64) -> Ordering

§

impl ElementComparison for u8

§

fn cmp(&self, other: &u8) -> Ordering

§

impl ElementComparison for u16

§

fn cmp(&self, other: &u16) -> Ordering

§

impl ElementComparison for u32

§

fn cmp(&self, other: &u32) -> Ordering

§

impl ElementComparison for u64

§

fn cmp(&self, other: &u64) -> Ordering

Implementors§