@@ -166,6 +166,8 @@ impl Ordering {
|
|||||||
///
|
///
|
||||||
/// - total and antisymmetric: exactly one of `a < b`, `a == b` or `a > b` is true; and
|
/// - total and antisymmetric: exactly one of `a < b`, `a == b` or `a > b` is true; and
|
||||||
/// - transitive, `a < b` and `b < c` implies `a < c`. The same must hold for both `==` and `>`.
|
/// - transitive, `a < b` and `b < c` implies `a < c`. The same must hold for both `==` and `>`.
|
||||||
|
///
|
||||||
|
/// When this trait is `derive`d, it produces a lexicographic ordering.
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
pub trait Ord: Eq + PartialOrd<Self> {
|
pub trait Ord: Eq + PartialOrd<Self> {
|
||||||
/// This method returns an `Ordering` between `self` and `other`.
|
/// This method returns an `Ordering` between `self` and `other`.
|
||||||
|
|||||||
Reference in New Issue
Block a user