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§
fn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn clamp_partial(self, min: Self, max: Self) -> Selfwhere
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.