We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 26b8b06 + 8e5f4ad commit 760bbffCopy full SHA for 760bbff
src/lib.rs
@@ -82,9 +82,9 @@ use core::ops::{Deref, DerefMut};
82
/// }
83
84
/// ```
85
-pub trait ArbitraryOrd: Eq + PartialEq {
+pub trait ArbitraryOrd<Rhs = Self>: Eq + PartialEq<Rhs> {
86
/// Implements a meaningless, arbitrary ordering.
87
- fn arbitrary_cmp(&self, other: &Self) -> Ordering;
+ fn arbitrary_cmp(&self, other: &Rhs) -> Ordering;
88
}
89
90
/// A wrapper type that implements `PartialOrd` and `Ord`.
0 commit comments