Iterable

protocol Iterable

A reusable collection that can produce a fresh borrowed iterator.

Calling iter does not consume the collection. Implement IntoIterator separately when callers should be able to move owned elements out.

Methods

func iter() -> Iter

Creates a fresh iterator borrowing this collection's current snapshot.

View Source
func iter() -> Iter