idmap-derive

Crates.ioidmap-derive
lib.rsidmap-derive
version0.1.2
sourcesrc
created_at2017-08-16 16:50:06.260915
updated_at2020-05-16 22:38:40.308835
descriptionAutomaticatically derives IntegerId for the `idmap` crate
homepage
repositoryhttps://github.com/Techcable/rust-idmap
max_upload_size
id27774
size6,096
(Techcable)

documentation

README

rust-idmap Crates.io Documentation

Efficient maps of integer id keys to values, backed by an underlying Vec.

Features

  • Automiatically derived IntegerId for enums and newtype structs
    • Implemented in the idmap-derive proc_macro crate
  • Maintains insertion order of the entries, as there's an indirection like OrderMap.
    • Therefore, entries which aren't present take little space, as only a u32 needs to be stored.
    • This indirection can be avoided with a DirectIdMap which doesn't preserve order, and saves space when the ids of the map's keys are densly packed and mostly present.
Commit count: 31

cargo fmt