Trait PartialOrdExtension

Source
pub trait PartialOrdExtension: PartialOrd {
    // Provided methods
    fn max_partial(self, other: Self) -> Self
       where Self: Sized { ... }
    fn min_partial(self, other: Self) -> Self
       where Self: Sized { ... }
    fn clamp_partial(self, min: Self, max: Self) -> Self
       where Self: Sized { ... }
}

Provided Methods§

Source

fn max_partial(self, other: Self) -> Self
where Self: Sized,

Source

fn min_partial(self, other: Self) -> Self
where Self: Sized,

Source

fn clamp_partial(self, min: Self, max: Self) -> Self
where Self: Sized,

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§