pub trait PartialMax: PartialOrd<Self>where
Self: Sized,{
// Provided method
fn partial_max(self, other: Self) -> Option<Self> { ... }
}Provided Methods§
Sourcefn partial_max(self, other: Self) -> Option<Self>
fn partial_max(self, other: Self) -> Option<Self>
Returns the maximum of two values, if they are comparable.
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.