Structureswift 6.1.2Swift
Iterator
@frozen struct Iterator@frozen struct Iteratorimport Swift@frozen struct KeysA view of a dictionary’s keys.
@frozen struct Dictionary<Key, Value> where Key : HashableA collection whose elements are key-value pairs.
var count: Int { get }The number of keys in the dictionary.
var debugDescription: String { get }var description: String { get }var endIndex: Dictionary<Key, Value>.Index { get }var isEmpty: Bool { get }var startIndex: Dictionary<Key, Value>.Index { get }subscript(position: Dictionary<Key, Value>.Index) -> Dictionary<Key, Value>.Keys.Element { get } static func == (lhs: Dictionary<Key, Value>.Keys, rhs: Dictionary<Key, Value>.Keys) -> Bool func formIndex(after i: inout Dictionary<Key, Value>.Index) func index(after i: Dictionary<Key, Value>.Index) -> Dictionary<Key, Value>.Index func makeIterator() -> Dictionary<Key, Value>.Keys.Iterator typealias Element = Keytypealias SubSequence = Slice<Dictionary<Key, Value>.Keys>protocol IteratorProtocol<Element>A type that supplies the values of a sequence one at a time.
mutating func next() -> Key? protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
protocol CopyableA type whose values can be implicitly or explicitly copied.
protocol Escapable