Skip to main content

Module typed_map

Module typed_map 

Source
Expand description

Typed hash map for v2 runtime.

TypedMap<K, V> is a #[repr(C)] open-addressing hash table with linear probing. The compiler monomorphizes: HashMap<string, number> and HashMap<string, i32> are different TypedMap instantiations.

Concrete type aliases are provided for common instantiations used by FFI/JIT:

  • TypedMapStringF64HashMap<string, number>
  • TypedMapStringI64HashMap<string, i64>
  • TypedMapStringPtrHashMap<string, *const u8>

Structs§

Bucket
A single bucket in the hash table.
TypedMap
Typed open-addressing hash map with linear probing.

Type Aliases§

TypedMapI64F64
TypedMapI64I64
TypedMapI64Ptr
TypedMapStringF64
TypedMapStringI64
TypedMapStringPtr