rust_identified_vec
Ordered, id-indexed vector with O(1) lookup by stable id — a standalone Rust library.
Zero dependencies by default. Optional serde feature for JSON round-trip.
Install
[]
= "0.1.2"
# with persistence
= { = "0.1.2", = ["serde"] }
Quick start
use ;
let mut todos = new;
todos.insert;
todos.update;
assert_eq!;
Features
| Feature | Description |
|---|---|
serde |
Serialize/deserialize as a plain JSON array (order preserved) |
Documentation
- In-depth guide:
book/identified.md - API docs:
cargo doc --open
Used by
rust-elm re-exports this crate for ForEachReducer and list state.
License
MPL-2.0 — see LICENSE.