Cmp

Trait Cmp 

Source
pub trait Cmp {
    type Bool: Copy + Not<Output = Self::Bool> + BitAnd<Self::Bool, Output = Self::Bool> + BitOr<Self::Bool, Output = Self::Bool> + BitXor<Self::Bool, Output = Self::Bool>;

    // Required methods
    fn eq(self, rhs: Self) -> bool;
    fn ne(self, rhs: Self) -> bool;
    fn gt(self, rhs: Self) -> bool;
    fn lt(self, rhs: Self) -> bool;
    fn ge(self, rhs: Self) -> bool;
    fn le(self, rhs: Self) -> bool;
}

Required Associated Types§

Source

type Bool: Copy + Not<Output = Self::Bool> + BitAnd<Self::Bool, Output = Self::Bool> + BitOr<Self::Bool, Output = Self::Bool> + BitXor<Self::Bool, Output = Self::Bool>

Required Methods§

Source

fn eq(self, rhs: Self) -> bool

Source

fn ne(self, rhs: Self) -> bool

Source

fn gt(self, rhs: Self) -> bool

Source

fn lt(self, rhs: Self) -> bool

Source

fn ge(self, rhs: Self) -> bool

Source

fn le(self, rhs: Self) -> bool

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 Cmp for f32

Source§

type Bool = bool

Source§

fn eq(self, rhs: Self) -> bool

Source§

fn ne(self, rhs: Self) -> bool

Source§

fn gt(self, rhs: Self) -> bool

Source§

fn lt(self, rhs: Self) -> bool

Source§

fn ge(self, rhs: Self) -> bool

Source§

fn le(self, rhs: Self) -> bool

Source§

impl Cmp for f64

Source§

type Bool = bool

Source§

fn eq(self, rhs: Self) -> bool

Source§

fn ne(self, rhs: Self) -> bool

Source§

fn gt(self, rhs: Self) -> bool

Source§

fn lt(self, rhs: Self) -> bool

Source§

fn ge(self, rhs: Self) -> bool

Source§

fn le(self, rhs: Self) -> bool

Implementors§