Objects that implement the binary <, <=, >, and >= operators.
trait PartialOrd<Rhs = Self> : Eq<Rhs>
where Rhs: ?Sized,
{
/* Required methods */
fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>
/* Provided methods */
fn ge(&self, other: &Rhs) -> bool
fn gt(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
}| Receiver | Name | Description |
|---|---|---|
&self | ge | The method that will be called by the |
&self | gt | The method that will be called by the |
&self | le | The method that will be called by the |
&self | lt | The method that will be called by the |
&self | partial_cmp | Attempts a comparison between the object and another one. |