pub trait PartialMinMax: Sized {
type T;
// Required method
fn partial_min_max(self) -> (Self::T, Self::T);
// Provided methods
fn partial_min(self) -> Self::T { ... }
fn partial_max(self) -> Self::T { ... }
}Expand description
Extension trait for getting minimum/maximum of values grouped together
Required Associated Types§
Required Methods§
Sourcefn partial_min_max(self) -> (Self::T, Self::T)
fn partial_min_max(self) -> (Self::T, Self::T)
Find (min, max)
Provided Methods§
Sourcefn partial_min(self) -> Self::T
fn partial_min(self) -> Self::T
Find min
Sourcefn partial_max(self) -> Self::T
fn partial_max(self) -> Self::T
Find max
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.