Structureswift 6.0.1Swift
Index
A position in a FlattenCollection
@frozen struct Index
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (11) members.
Instance members
var endIndex: FlattenSequence<Base>.Index
The collection’s “past the end” position.
var startIndex: FlattenSequence<Base>.Index
The position of the first element in a non-empty collection.
subscript(FlattenSequence<Base>.Index
) -> Base.Element.Element Accesses the element at
position
.subscript(Range<FlattenSequence<Base>.Index>
) -> Slice<FlattenCollection<Base>> func distance(from: FlattenSequence<Base>.Index, to: FlattenSequence<Base>.Index
) -> Int func formIndex(inout FlattenSequence<Base>.Index, offsetBy: Int
) func formIndex(inout FlattenSequence<Base>.Index, offsetBy: Int, limitedBy: FlattenSequence<Base>.Index
) -> Bool func formIndex(after: inout FlattenSequence<Base>.Index
) func index(FlattenSequence<Base>.Index, offsetBy: Int
) -> FlattenSequence<Base>.Index func index(FlattenSequence<Base>.Index, offsetBy: Int, limitedBy: FlattenSequence<Base>.Index
) -> FlattenSequence<Base>.Index? func index(after: FlattenSequence<Base>.Index
) -> FlattenSequence<Base>.Index
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
Type members
static func < (lhs: FlattenCollection<Base>.Index, rhs: FlattenCollection<Base>.Index
) -> Bool static func == (lhs: FlattenCollection<Base>.Index, rhs: FlattenCollection<Base>.Index
) -> Bool
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.
Citizens in Swift
Conformances
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Instance members
func hash(into: inout Hasher
) Hashes the essential components of this value by feeding them into the given hasher.