Structure

AnyIndex

A wrapper over an underlying index that hides the specific underlying type.

Declaration

struct AnyIndex

Topics

Initializers

init<BaseIndex>(BaseIndex)

Creates a new index wrapping base.

Operator Functions

static func != (AnyIndex, AnyIndex) -> Bool

Returns a Boolean value indicating whether two values are not equal.

static func ... (AnyIndex) -> PartialRangeThrough<AnyIndex>

Returns a partial range up to, and including, its upper bound.

static func ... (AnyIndex) -> PartialRangeFrom<AnyIndex>

Returns a partial range extending upward from a lower bound.

static func ... (AnyIndex, AnyIndex) -> ClosedRange<AnyIndex>

Returns a closed range that contains both of its bounds.

static func ..< (AnyIndex) -> PartialRangeUpTo<AnyIndex>

Returns a partial range up to, but not including, its upper bound.

static func ..< (AnyIndex, AnyIndex) -> Range<AnyIndex>

Returns a half-open range that contains its lower bound but not its upper bound.

static func < (AnyIndex, AnyIndex) -> Bool

Returns a Boolean value indicating whether the first argument represents a position before the second argument.

static func <= (AnyIndex, AnyIndex) -> 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 == (AnyIndex, AnyIndex) -> Bool

Returns a Boolean value indicating whether two indices wrap equal underlying indices.

static func > (AnyIndex, AnyIndex) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.

static func >= (AnyIndex, AnyIndex) -> Bool

Returns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.

Relationships

Conforms To

See Also

Type-Erasing Wrappers

struct AnyCollection

A type-erased wrapper over any collection with indices that support forward traversal.

struct AnyBidirectionalCollection

A type-erased wrapper over any collection with indices that support bidirectional traversal.

struct AnyRandomAccessCollection

A type-erased wrapper over any collection with indices that support random access traversal.

struct AnyIterator

A type-erased iterator of Element.

struct AnyHashable

A type-erased hashable value.