Skip to main content

shape_for_hashmap_keys

Function shape_for_hashmap_keys 

Source
pub fn shape_for_hashmap_keys(key_hashes: &[u32]) -> Option<ShapeId>
Expand description

Compute a ShapeId for a HashMap with the given key hashes (in insertion order).

Uses the global shape transition table. Returns None if the lock is poisoned or if there are more than 64 properties (dictionary mode threshold).