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§
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
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.