substrate-data 0.3.1

One data model, text syntax, binary form, packed frames and schema system — for any program's files, saves and wire messages.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! A map: entries in file order, keys unique. A small map is
//! searched by a scan, the fastest there is for few keys. Past
//! [`INDEXED_FROM`] keys, a lookup builds an index of them once, and every
//! later change keeps it current. Decoding never builds one, so a document
//! read and never searched pays nothing for it.

#[expect(clippy::module_inception, reason = "the map module's one type")]
mod map;
#[cfg(test)]
mod tests;

#[cfg(test)]
use map::INDEXED_FROM;
pub use map::Map;