Skip to main content

ElementEq

Trait ElementEq 

pub trait ElementEq {
    // Required method
    fn eq(&self, other: &Self) -> bool;
}
Expand description

Element trait for equality of a tensor.

Required Methods§

fn eq(&self, other: &Self) -> bool

Returns whether self and other are equal.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

§

impl ElementEq for bool

§

fn eq(&self, other: &bool) -> bool

§

impl ElementEq for f32

§

fn eq(&self, other: &f32) -> bool

§

impl ElementEq for f64

§

fn eq(&self, other: &f64) -> bool

§

impl ElementEq for i8

§

fn eq(&self, other: &i8) -> bool

§

impl ElementEq for i16

§

fn eq(&self, other: &i16) -> bool

§

impl ElementEq for i32

§

fn eq(&self, other: &i32) -> bool

§

impl ElementEq for i64

§

fn eq(&self, other: &i64) -> bool

§

impl ElementEq for u8

§

fn eq(&self, other: &u8) -> bool

§

impl ElementEq for u16

§

fn eq(&self, other: &u16) -> bool

§

impl ElementEq for u32

§

fn eq(&self, other: &u32) -> bool

§

impl ElementEq for u64

§

fn eq(&self, other: &u64) -> bool

Implementors§