Trait burn_tensor::ElementComparison

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

Element ordering trait.

Required Methods§

source

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

Returns and Ordering between self and other.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ElementComparison for bool

source§

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

source§

impl ElementComparison for f32

source§

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

source§

impl ElementComparison for f64

source§

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

source§

impl ElementComparison for i8

source§

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

source§

impl ElementComparison for i16

source§

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

source§

impl ElementComparison for i32

source§

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

source§

impl ElementComparison for i64

source§

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

source§

impl ElementComparison for u8

source§

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

source§

impl ElementComparison for u32

source§

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

source§

impl ElementComparison for u64

source§

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

Implementors§