compactmap 0.3.0

Compact Vec-based map that choses assigns IDs for your values on it's own. Not everything is implemented so far.
Documentation

Compactmap - Vec-based map that uses usize as key type and maintains internal linked list for removed nodes.

You don't choose the key when inserting a new value. You can remove any entry.

Based on this post by eddyb.

TODO:

  • Methods: drain, compact, expand, clear, keys, values, ...
  • Serde

License is MIT or Apache, like for Rust itself.