File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3
3
//! This module contains various tools for comparing and ordering values. In
4
4
//! summary:
5
5
//!
6
- //! * [`Eq `] and [`PartialEq`] correspond to equivalence relations and partial
7
- //! equivalence relations, respectively. Implementing these traits for types
8
- //! provides the `==` and `!=` operators for those types .
9
- //! Implementing `Eq` (in addition to `PartialEq`) indicates that `a == a` is
10
- //! `true` for every `a` (according to an equivalence relation) .
6
+ //! * [`PartialEq<Rhs> `] overloads the `==` and `!=` operators. In cases where
7
+ //! `Rhs` (the right hand side's type) is `Self`, this corresponds to a
8
+ //! partial equivalence relation .
9
+ //! * [ `Eq`] indicates that the overloaded `==` operator corresponds to an
10
+ //! equivalence relation.
11
11
//! * [`Ord`] and [`PartialOrd`] are traits that allow you to define total and
12
12
//! partial orderings between values, respectively. Implementing them overloads
13
13
//! the `<`, `<=`, `>`, and `>=` operators.
You can’t perform that action at this time.
0 commit comments