Development · Evolving reference
WritableDequeIterator
Traverses borrowed circular storage as writable element references.
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.
WritableDequeIterator
pub final class WritableDequeIterator<T>Traverses borrowed circular storage as writable element references.
The cursor allocates nothing and retains no owner. Next costs O(1); exhaustion is permanent. Any structural owner mutation, move or destruction invalidates the cursor and yielded references. External synchronization is required. T: Exact ring element type.
WritableDequeIterator.Next
pub fn Next() -> mut T&?Advances and borrows the next logical ring element. Return: Optional writable reference, or none after exhaustion. Warning: References never retain storage; owner invalidation rules apply.
Documentation snapshot: October 24, 2026 About versions ↗