# Module hashbrown::hash_set

source · [−]
Expand description

A hash set implemented as a `HashMap` where the value is `()`.

## Structs

Difference

A lazy iterator producing elements in the difference of `HashSet`s.

Drain

A draining iterator over the items of a `HashSet`.

DrainFilter

A draining iterator over entries of a `HashSet` which don’t satisfy the predicate `f`.

HashSet

A hash set implemented as a `HashMap` where the value is `()`.

Intersection

A lazy iterator producing elements in the intersection of `HashSet`s.

IntoIter

An owning iterator over the items of a `HashSet`.

Iter

An iterator over the items of a `HashSet`.

OccupiedEntry

A view into an occupied entry in a `HashSet`. It is part of the `Entry` enum.

SymmetricDifference

A lazy iterator producing elements in the symmetric difference of `HashSet`s.

Union

A lazy iterator producing elements in the union of `HashSet`s.

VacantEntry

A view into a vacant entry in a `HashSet`. It is part of the `Entry` enum.

## Enums

Entry

A view into a single entry in a set, which may either be vacant or occupied.