pub trait GreatestElement: PartialOrd + Sized {
// Required method
fn greatest() -> Self;
// Provided method
fn is_greatest(&self) -> bool { ... }
}Expand description
A partial order with a greatest element (which is necessarily unique).
Required Methods§
Provided Methods§
Sourcefn is_greatest(&self) -> bool
fn is_greatest(&self) -> bool
Returns true if and only if self is the greatest element.
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.