Type Definition bevy_utils::PreHashMap

source ·
pub type PreHashMap<K, V> = HashMap<Hashed<K>, V, PassHash>;
Expand description

A HashMap pre-configured to use Hashed keys and PassHash passthrough hashing.

Trait Implementations§

Tries to get or insert the value for the given key using the pre-computed hash first. If the PreHashMap does not already contain the key, it will clone it and insert the value returned by func. Read more