std::collections::hash_map - Rust
Description: API documentation for the Rust `hash_map` mod in crate `std`.
Keywords: rust, rustlang, rust-lang, hash_map

# 1.0.0[−][src]Module std::collections::hash_map

A hash map implemented with linear probing and Robin Hood bucket stealing.

## Structs

DefaultHasher | The default `Hasher` used by `RandomState`.
Drain | A draining iterator over the entries of a `HashMap`.
HashMap | A hash map implemented with linear probing and Robin Hood bucket stealing.
IntoIter | An owning iterator over the entries of a `HashMap`.
Iter | An iterator over the entries of a `HashMap`.
IterMut | A mutable iterator over the entries of a `HashMap`.
Keys | An iterator over the keys of a `HashMap`.
OccupiedEntry | A view into an occupied entry in a `HashMap`. It is part of the `Entry` enum.
RandomState | `RandomState` is the default state for `HashMap` types.
VacantEntry | A view into a vacant entry in a `HashMap`. It is part of the `Entry` enum.
Values | An iterator over the values of a `HashMap`.
ValuesMut | A mutable iterator over the values of a `HashMap`.
RawEntryBuilder | [ Experimental ] A builder for computing where in a HashMap a key-value pair would be stored.
RawEntryBuilderMut | [ Experimental ] A builder for computing where in a HashMap a key-value pair would be stored.
RawOccupiedEntryMut | [ Experimental ] A view into an occupied entry in a `HashMap`. It is part of the `RawEntryMut` enum.
RawVacantEntryMut | [ Experimental ] A view into a vacant entry in a `HashMap`. It is part of the `RawEntryMut` enum.

## Enums

Entry | A view into a single entry in a map, which may either be vacant or occupied.
RawEntryMut | [ Experimental ] A view into a single entry in a map, which may either be vacant or occupied.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)