Trait PartialOrdExt

Source
pub trait PartialOrdExt: Sized {
    // Required methods
    fn chmin(&mut self, other: Self);
    fn chmax(&mut self, other: Self);
    fn minmax(self, other: Self) -> (Self, Self);
}

Required Methods§

Source

fn chmin(&mut self, other: Self)

Source

fn chmax(&mut self, other: Self)

Source

fn minmax(self, other: Self) -> (Self, Self)

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> PartialOrdExt for T
where T: PartialOrd,