We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 50dd497 + 4a68a7e commit 3a7e3c2Copy full SHA for 3a7e3c2
src/libcollections/borrow.rs
@@ -38,6 +38,9 @@ use self::Cow::*;
38
/// type can be borrowed as multiple different types. In particular, `Vec<T>:
39
/// Borrow<Vec<T>>` and `Vec<T>: Borrow<[T]>`.
40
///
41
+/// If you are implementing `Borrow` and both `Self` and `Borrowed` implement
42
+/// `Hash`, `Eq`, and/or `Ord`, they must produce the same result.
43
+///
44
/// `Borrow` is very similar to, but different than, `AsRef`. See
45
/// [the book][book] for more.
46
0 commit comments