HashSet Docs: Split First Paragraph
This way, the module index renders only the first sentence as a short description.
This commit is contained in:
parent
35149bf1ce
commit
6814c2f1aa
1 changed files with 6 additions and 4 deletions
|
|
@ -31,10 +31,12 @@ use super::state::HashState;
|
|||
// to get rid of it properly.
|
||||
|
||||
/// An implementation of a hash set using the underlying representation of a
|
||||
/// HashMap where the value is (). As with the `HashMap` type, a `HashSet`
|
||||
/// requires that the elements implement the `Eq` and `Hash` traits. This can
|
||||
/// frequently be achieved by using `#[derive(Eq, Hash)]`. If you implement
|
||||
/// these yourself, it is important that the following property holds:
|
||||
/// HashMap where the value is ().
|
||||
///
|
||||
/// As with the `HashMap` type, a `HashSet` requires that the elements
|
||||
/// implement the `Eq` and `Hash` traits. This can frequently be achieved by
|
||||
/// using `#[derive(Eq, Hash)]`. If you implement these yourself, it is
|
||||
/// important that the following property holds:
|
||||
///
|
||||
/// ```text
|
||||
/// k1 == k2 -> hash(k1) == hash(k2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue