mirror of
https://github.com/matrix-org/rust-matrix-state-map.git
synced 2026-11-17 04:10:37 +00:00
A library that implements a StateMap container type
- Rust 100%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| benches | ||
| src | ||
| .gitignore | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
StateMap
A container for memory efficient handling of Matrix state maps.
Usage
let mut state_map = StateMap::new();
state_map.insert("m.room.member", "@erikj:jki.re", 10);
assert_eq!(state_map.get("m.room.member", "@erikj:jki.re"), Some(10));