We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26ff471 + 8b81f76 commit 08f9b98Copy full SHA for 08f9b98
src/libcore/cmp.rs
@@ -166,6 +166,8 @@ impl Ordering {
166
///
167
/// - total and antisymmetric: exactly one of `a < b`, `a == b` or `a > b` is true; and
168
/// - transitive, `a < b` and `b < c` implies `a < c`. The same must hold for both `==` and `>`.
169
+///
170
+/// When this trait is `derive`d, it produces a lexicographic ordering.
171
#[stable(feature = "rust1", since = "1.0.0")]
172
pub trait Ord: Eq + PartialOrd<Self> {
173
/// This method returns an `Ordering` between `self` and `other`.
0 commit comments