Skip to main content

ElementEq

Trait ElementEq 

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

Element trait for equality of a tensor.

Required Methods§

Source

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", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ElementEq for bool

Source§

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

Source§

impl ElementEq for f32

Source§

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

Source§

impl ElementEq for f64

Source§

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

Source§

impl ElementEq for i8

Source§

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

Source§

impl ElementEq for i16

Source§

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

Source§

impl ElementEq for i32

Source§

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

Source§

impl ElementEq for i64

Source§

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

Source§

impl ElementEq for u8

Source§

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

Source§

impl ElementEq for u16

Source§

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

Source§

impl ElementEq for u32

Source§

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

Source§

impl ElementEq for u64

Source§

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

Implementors§