HashMap's docs can do a better job of explaining how to implement a hasher #71652
Labels
A-collections
Area: `std::collection`
A-docs
Area: documentation for any part of the project, including the compiler, standard library, and tools
C-bug
Category: This is a bug.
The docs say:
However, there isn't a mention of the Hasher trait. If you look at the docs for
with_hasher
, the type is justS
. If you look at the struct definition,S = RandomState
is all you get. You have to click to RandomState, and then see that it implementsHasher
, to know what's going on.The text was updated successfully, but these errors were encountered: