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.
HashMap
1 parent c0a3e48 commit 06e4365Copy full SHA for 06e4365
library/std/src/collections/hash/map.rs
@@ -169,6 +169,8 @@ use crate::ops::Index;
169
/// player_stats.entry("mana").and_modify(|mana| *mana += 200).or_insert(100);
170
/// ```
171
///
172
+/// ## Usage with custom key types
173
+///
174
/// The easiest way to use `HashMap` with a custom key type is to derive [`Eq`] and [`Hash`].
175
/// We must also derive [`PartialEq`].
176
0 commit comments