Structureswift 6.0.1Swift
Index
The position of a collection difference.
- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
@frozen struct Index
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (13) members.
Types
enum Change
A single change to a collection.
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
Type members
static func < (lhs: CollectionDifference<ChangeElement>.Index, rhs: CollectionDifference<ChangeElement>.Index
) -> Bool static func == (lhs: CollectionDifference<ChangeElement>.Index, rhs: CollectionDifference<ChangeElement>.Index
) -> Bool
Instance members
Citizens in Swift
Conformances
Citizens in Swift
Conformances
protocol Comparable
A type that can be compared using the relational operators
<
,<=
,>=
, and>
.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
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Type features
static func != (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether two values are not equal.
static func ... (minimum: Self
) -> PartialRangeFrom<Self> Returns a partial range extending upward from a lower bound.
static func ... (maximum: Self
) -> PartialRangeThrough<Self> Returns a partial range up to, and including, its upper bound.
static func ... (minimum: Self, maximum: Self
) -> ClosedRange<Self> Returns a closed range that contains both of its bounds.
static func ..< (maximum: Self
) -> PartialRangeUpTo<Self> Returns a partial range up to, but not including, its upper bound.
static func ..< (minimum: Self, maximum: Self
) -> Range<Self> Returns a half-open range that contains its lower bound but not its upper bound.
static func <= (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func > (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func >= (lhs: Self, rhs: Self
) -> Bool Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.