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§
Sourcefn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn max_partial(self, other: Self) -> Selfwhere
Self: Sized,
Using PartialOrd operator, not component wise
Sourcefn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
fn min_partial(self, other: Self) -> Selfwhere
Self: Sized,
Using PartialOrd operator, not component wise
Sourcefn clamp_partial(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
fn clamp_partial(self, min: Self, max: Self) -> Selfwhere
Self: Sized,
Using PartialOrd operator, not component wise
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".