Structure

String.UTF16View.Iterator

A type that provides the collection’s iteration interface and encapsulates its iteration state.

Declaration

@frozen struct Iterator

Overview

By default, a collection conforms to the Sequence protocol by supplying IndexingIterator as its associated Iterator type.

Topics

Type Aliases

typealias String.UTF16View.Iterator.Element

The type of element traversed by the iterator.

Instance Methods

func next() -> UInt16?

Advances to the next element and returns it, or nil if no next element exists.

Relationships

From Protocol