UnsafeHashMap.rehash

Rehashes the table.

Manual rehashes may make future lookups more efficient. This is also the only way to reduce a hash table's memory footprint. Nothing happens to the table in case of failure.

  1. err_t rehash(size_t newCapacity)
  2. err_t rehash()
    struct UnsafeHashMap(Key, Value)
    rehash
    ()

Return Value

Type: err_t

Zero on success, non-zero on failure (on OOM, overflow or an invalid capacity).