Development · Evolving reference
DequeIterator
Traverses borrowed circular storage as readonly 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.
DequeIterator
pub final class DequeIterator<T>Traverses borrowed circular storage as readonly 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.
DequeIterator.Next
pub fn Next() -> T&?Advances and borrows the next logical ring element. Return: Optional readonly reference, or none after exhaustion. Warning: References never retain storage; owner invalidation rules apply.
Documentation snapshot: October 24, 2026 About versions ↗