Under heavy development. This site describes the intended 1.0 language. Current features and performance vary. Development status
Sn50SnThe SnAPI programming language
Snapshot · Oct 24, 2026 · Frozen documentation

HashMapBucket

Public declarations and documented usage.

Sn is under heavy development. This reference includes the intended 1.0 design; features may be incomplete in the current compiler. Read the status →

Module std.collections

import std.collections;

Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.

pub CachedHash: u64;

pub CachedHash: u64;

Stable cached key hash; never recomputed during rehash.

pub Entry: HashMapEntry<K, V>;

pub Entry: HashMapEntry<K, V>;

Owns the only live key/value objects for this occupied slot.

pub init(Hash: u64, mut Key: K, mut Value: V)

pub init(Hash: u64, mut Key: K, mut Value: V)

Constructs one occupied raw bucket through HashMap's checked live-slot path. Hash: Stable cached key hash. Key: Owned input moved into the live pair. Value: Owned input moved into the live pair.

pub init(Source: mut Self&&)

pub init(Source: mut Self&&)

Transfers the live pair during rehash without requiring default values. Source: Occupied source slot, left destructible until old-array cleanup.

Documentation snapshot: October 24, 2026 About versions ↗
Searching Development · language & standard library