StructureSwift5.9.0
Index
An index that traverses the same positions as an underlying index, with inverted traversal direction.
@frozen struct Index
Citizens in Swift
Members
init(Base
.Index) Creates a new index into a reversed collection for the position before the specified index.
let base: Base.Index
The position after this position in the underlying collection.
Citizens in Swift
where Base:BidirectionalCollection, Base.Index:Hashable
Conformances
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Members
func hash(into: inout Hasher
) Hashes the essential components of this value by feeding them into the given hasher.
Citizens in Swift
where Base:BidirectionalCollection
Conformances
protocol Comparable
A type that can be compared using the relational operators
<
,<=
,>=
, and>
.protocol Equatable
A type that can be compared for value equality.
Members
static func < (ReversedCollection
<Base>.Index, ReversedCollection<Base>.Index) -> Bool static func == (ReversedCollection
<Base>.Index, ReversedCollection<Base>.Index) -> Bool
Features
static func != (Self, Self
) -> Bool static func ... (Self
) -> PartialRangeFrom<Self> Returns a partial range extending upward from a lower bound.
static func ... (Self
) -> PartialRangeThrough<Self> Returns a partial range up to, and including, its upper bound.
static func ... (Self, Self
) -> ClosedRange<Self> Returns a closed range that contains both of its bounds.
static func ..< (Self
) -> PartialRangeUpTo<Self> Returns a partial range up to, but not including, its upper bound.
static func ..< (Self, Self
) -> Range<Self> Returns a half-open range that contains its lower bound but not its upper bound.