Module raw_entry_v1

Module raw_entry_v1 

Source
Expand description

Opt-in access to the experimental raw entry API.

This module is designed to mimic the raw entry API of [HashMap][std::collections::hash_map], matching its unstable state as of Rust 1.75. See the tracking issue rust#56167 for more details.

The trait RawEntryApiV1 and the _v1 suffix on its methods are meant to insulate this for the future, in case later breaking changes are needed. If the standard library stabilizes its hash_raw_entry feature (or some replacement), matching inherent methods will be added to IndexMap without such an opt-in trait.

Structs§

RawEntryBuilder
A builder for computing where in an IndexMap a key-value pair would be stored.
RawEntryBuilderMut
A builder for computing where in an IndexMap a key-value pair would be stored.
RawOccupiedEntryMut
A raw view into an occupied entry in an IndexMap. It is part of the RawEntryMut enum.
RawVacantEntryMut
A view into a vacant raw entry in an IndexMap. It is part of the RawEntryMut enum.

Enums§

RawEntryMut
Raw entry for an existing key-value pair or a vacant location to insert one.

Traits§

RawEntryApiV1
Opt-in access to the experimental raw entry API.