Crate blazemap

Source
Expand description

Implements a vector-based slab-like map with an interface similar to that of HashMap, and also provides tools for generating lightweight identifiers that can be type-safely used as keys for this map.

Modules§

collections
Collection types.
prelude
Crate prelude.

Macros§

define_key_wrapper
Creates a new type that acts as an usize-based replacement for the old type that can be used as a key for blazemap collections.
define_key_wrapper_bounded
Creates a new type that acts as an usize-based replacement for the old type that can be used as a key for blazemap collections. Being an analogue of define_key_wrapper for the case when the user could statically guarantee that the number of unique keys doesn’t exceed MAX_CAP, it’s optimized for read operations so that they don’t create any multi-thread contention.
define_plain_id
Creates a new type based on incrementally generated usize instances that can be used as a key for blazemap collections.