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 33//! This module contains various tools for comparing and ordering values. In
44//! summary:
55//!
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.
1111//! * [`Ord`] and [`PartialOrd`] are traits that allow you to define total and
1212//! partial orderings between values, respectively. Implementing them overloads
1313//! the `<`, `<=`, `>`, and `>=` operators.
You can’t perform that action at this time.
0 commit comments