A library that implements a StateMap container type
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Erik Johnston 211343e8dd README
2018-10-12 12:08:41 +01:00
benches Add license headers 2018-10-12 12:06:11 +01:00
src Add license headers 2018-10-12 12:06:11 +01:00
.gitignore Initial commit 2018-10-12 12:04:01 +01:00
Cargo.toml Initial commit 2018-10-12 12:04:01 +01:00
LICENSE Create LICENSE 2018-10-12 12:05:29 +01:00
README.md README 2018-10-12 12:08:41 +01:00

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));