You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
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.
Implements a vector-based slab-like map with an interface similar to that ofHashMap,and also provides tools for generating lightweight identifiers that can be type-safely used as keys for this map.
Usage
Currently, this crate provides 3 ways to create new types based onusize that can be used as keys toBlazeMap.They are represented by the following macros and provide different optimizations.
1.define_key_wrapper!
Creates a new type that acts as anusize-based replacementfor the old type that can be used as a key forblazemap collections.
Creates a new type that acts as anusize-based replacement for the oldtype that can be used as a key forblazemap collections.
Being an analogue ofdefine_key_wrapper!for the case when the user could statically guaranteethat the number of unique keys doesn't exceedMAX_CAP, it's optimized forread operations so that they don't create any multi-thread contention.
Creates a new type based on incrementally generatedusize instancesthat can be used as a key forblazemap collections. This is the most performant way to generate keys forBlazeMap.
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.