Trait const_ops::PartialEq

source ·
pub trait PartialEq<Rhs = Self> {
    // Required method
    fn eq(&self, other: &Rhs) -> bool;

    // Provided method
    fn ne(&self, other: &Rhs) -> bool { ... }
}

Required Methods§

source

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

This method tests for self and other values to be equal, and is used by ==.

Provided Methods§

source

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementations on Foreign Types§

source§

impl PartialEq<usize> for usize

source§

const fn eq(&self, rhs: &usize) -> bool

source§

impl PartialEq<i32> for i32

source§

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

source§

impl PartialEq<i64> for i64

source§

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

source§

impl PartialEq<i8> for i8

source§

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

source§

impl PartialEq<u128> for u128

source§

const fn eq(&self, rhs: &u128) -> bool

source§

impl PartialEq<u8> for u8

source§

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

source§

impl PartialEq<u32> for u32

source§

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

source§

impl PartialEq<bool> for bool

source§

const fn eq(&self, rhs: &bool) -> bool

source§

impl PartialEq<i16> for i16

source§

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

source§

impl PartialEq<u64> for u64

source§

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

source§

impl PartialEq<i128> for i128

source§

const fn eq(&self, rhs: &i128) -> bool

source§

impl PartialEq<u16> for u16

source§

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

source§

impl PartialEq<isize> for isize

source§

const fn eq(&self, rhs: &isize) -> bool

Implementors§