Name Description Size Coverage
disjoint.rs 2202 -
entry.rs 10634 -
iter.rs 23455 -
mutable.rs 5194 -
raw_entry_v1.rs 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](https://github.com/rust-lang/rust/issues/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. 23587 -
serde_seq.rs Functions to serialize and deserialize an [`IndexMap`] as an ordered sequence. The default `serde` implementation serializes `IndexMap` as a normal map, but there is no guarantee that serialization formats will preserve the order of the key-value pairs. This module serializes `IndexMap` as a sequence of `(key, value)` elements instead, in order. This module may be used in a field attribute for derived implementations: ``` # use indexmap::IndexMap; # use serde::{Deserialize, Serialize}; #[derive(Deserialize, Serialize)] struct Data { #[serde(with = "indexmap::map::serde_seq")] map: IndexMap<i32, u64>, // ... } ``` 3896 -
slice.rs 24394 -
tests.rs 37137 -