core |
|
|
core.rs |
This is the core implementation that doesn't depend on the hasher at all.
The methods of `IndexMapCore` don't use any Hash properties of K.
It's cleaner to separate them out, then the compiler checks that we are not
using Hash at all in these methods.
However, we should probably not let this show in the public API or docs. |
22641 |
iter.rs |
|
18189 |
mutable.rs |
|
2665 |
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_derive::{Deserialize, Serialize};
#[derive(Deserialize, Serialize)]
struct Data {
#[serde(with = "indexmap::map::serde_seq")]
map: IndexMap<i32, u64>,
// ...
}
``` |
3907 |
slice.rs |
|
16987 |
tests.rs |
|
21039 |