PartialOrder

Trait PartialOrder 

Source
pub trait PartialOrder {
    // Required methods
    fn lt(&self, other: &Self) -> bool;
    fn le(&self, other: &Self) -> bool;
    fn gt(&self, other: &Self) -> bool;
    fn ge(&self, other: &Self) -> bool;
}

Required Methods§

Source

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

Source

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

Source

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

Source

fn ge(&self, other: &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.

Implementors§

Source§

impl<T> PartialOrder for T
where T: PartialOrd,