Trait lrs::prelude::v1::PartialOrd

Objects that implement the binary <, <=, >, and >= operators.

Syntax

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
}

Methods

ReceiverNameDescription
&selfge

The method that will be called by the >= operator.

&selfgt

The method that will be called by the > operator.

&selfle

The method that will be called by the <= operator.

&selflt

The method that will be called by the < operator.

&selfpartial_cmp

Attempts a comparison between the object and another one.