WritableHashMapIterator
Scans borrowed map buckets as writable-value entry views.
Module std.collections
import std.collections;Public declaration contracts and authored examples. A page can document several related symbols. Implementation bodies are excluded.
WritableHashMapIterator
pub final class WritableHashMapIterator<K, V> where K: Movable where V: MovableScans borrowed map buckets as writable-value entry views.
Full traversal costs O(capacity), skipping empty/deleted slots without allocation. Bucket order is unspecified. Exhaustion is permanent. The cursor retains no owner; structural mutation, move/destruction invalidate it and yielded views. K: Movable stored key type, always borrowed readonly. V: Movable stored value type.
WritableHashMapIterator.Next
pub fn Next() -> WritableHashMapEntryView<K, V>?Scans to the next occupied bucket and borrows its entry. Return: Optional entry view, or none permanently after all buckets are scanned. Warning: Next can scan O(capacity) absent buckets; owner invalidation rules apply.