Enum ::std::cmp::Ordering
An Ordering
is the result of a comparison between two values.
Examples
use Ordering;
use cmp;
let result = cmp;
assert_eq!;
let result = cmp;
assert_eq!;
let result = cmp;
assert_eq!;
Variants
An ordering where a compared value is less than another.
An ordering where a compared value is equal to another.
An ordering where a compared value is greater than another.
Protocols
protocol partial_eq
if value == b
Perform a partial ordering equality test.
Examples
use Ordering;
assert!;
assert!;
protocol eq
if value == b
Perform a total ordering equality test.
Examples
use eq;
use Ordering;
assert!;
assert!;