Enumerationswift 6.0.1Swift
Change
A single change to a collection.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
@frozen enum Change
Cases
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (13) members.
Types
struct Index
The position of a collection difference.
Typealiases
Type members
init?<Changes>(Changes
) Creates a new collection difference from a collection of changes.
Instance members
var endIndex: CollectionDifference<ChangeElement>.Index
let insertions: [CollectionDifference<ChangeElement>.Change]
The insertions contained by this difference, from lowest offset to highest.
let removals: [CollectionDifference<ChangeElement>.Change]
The removals contained by this difference, from lowest offset to highest.
var startIndex: CollectionDifference<ChangeElement>.Index
subscript(CollectionDifference<ChangeElement>.Index
) -> CollectionDifference<ChangeElement>.Element func distance(from: CollectionDifference<ChangeElement>.Index, to: CollectionDifference<ChangeElement>.Index
) -> Int func formIndex(inout CollectionDifference<ChangeElement>.Index, offsetBy: Int
) func index(after: CollectionDifference<ChangeElement>.Index
) -> CollectionDifference<ChangeElement>.Index func index(before: CollectionDifference<ChangeElement>.Index
) -> CollectionDifference<ChangeElement>.Index func inverse(
) -> CollectionDifference<ChangeElement>
Citizens in Swift
Conformances
protocol Decodable
A type that can decode itself from an external representation.
protocol Encodable
A type that can encode itself to an external representation.
Type members
Instance members
Citizens in Swift
where ChangeElement:Hashable
Conformances
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Citizens in Swift
where ChangeElement:Equatable
Conformances
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.