Structureswift 6.0.1Swift
Index
A position in a DiscontiguousSlice
.
- iOS
- 18.0+
- macOS
- 15.0+
- tvOS
- 18.0+
- visionOS
- 2.0+
- watchOS
- 11.0+
struct Index
Other members in extension
View members
Hide members
This section is hidden by default because it contains too many (13) members.
Typealiases
Instance members
var count: Int
var description: String
var endIndex: DiscontiguousSlice<Base>.Index
var isEmpty: Bool
var startIndex: DiscontiguousSlice<Base>.Index
subscript(DiscontiguousSlice<Base>.Index
) -> Base.Element subscript(Range<DiscontiguousSlice<Base>.Index>
) -> DiscontiguousSlice<Base> func distance(from: DiscontiguousSlice<Base>.Index, to: DiscontiguousSlice<Base>.Index
) -> Int func index(after: DiscontiguousSlice<Base>.Index
) -> DiscontiguousSlice<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 CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Escapable
Type members
static func < (left: DiscontiguousSlice<Base>.Index, right: DiscontiguousSlice<Base>.Index
) -> Bool static func == (left: DiscontiguousSlice<Base>.Index, right: DiscontiguousSlice<Base>.Index
) -> Bool
Instance members
let base: Base.Index
The position of this index in the base collection.
var description: String
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
where Base.Index:Hashable
Conformances
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.
Instance members
Citizens in Swift
where Base.Index:Sendable