Trait method lrs::prelude::v1::Ord::cmp

Compares two objects.

Syntax

fn cmp(&self, other: &Rhs) -> Ordering

Arguments

NameDescription
other

The object to be compared to self.

Return value

Returns the ordering between self and other.

Remarks

The returned ordering is in the form self Ordering other, e.g., self Ordering::Less other.