Skip to main content

record_bytes

Function record_bytes 

Source
pub const fn record_bytes<V>() -> usize
Expand description

The memory one record of value type V costs, in bytes, in the worst case.

The entry itself, the spare of the storage that grows in steps (1 / GROWTH_DIVISOR of the entries), and the index that finds it. A map holds budget / record_bytes::<V>() records, so each map honours its byte budget from its own type instead of from a figure measured on another. Allocator overhead and fragmentation are not included.