Required Associated Typeswift 6.1.2Swift
Element
A type representing the sequence’s elements.
associatedtype Element where Self.Element == Self.Iterator.ElementA type representing the sequence’s elements.
associatedtype Element where Self.Element == Self.Iterator.Elementimport Swiftprotocol Sequence<Element>A type that provides sequential, iterated access to its elements.
associatedtype Iterator : IteratorProtocolA type that provides the sequence’s iteration interface and encapsulates its iteration state.
associatedtype ElementThe type of element traversed by the iterator.
var underestimatedCount: Int { get }A value less than or equal to the number of elements in the sequence, calculated nondestructively.
func makeIterator() -> Self.Iterator Returns an iterator over the elements of this sequence.
func withContiguousStorageIfAvailable<R>(_ body: (UnsafeBufferPointer<Self.Element>) throws -> R) rethrows -> R? Executes a closure on the sequence’s contiguous storage.
associatedtype Element