Structure

ReversedCollection.Index

An index that traverses the same positions as an underlying index, with inverted traversal direction.

Declaration

@frozen struct Index

Topics

Initializers

init(Base.Index)

Creates a new index into a reversed collection for the position before the specified index.

Instance Properties

let base: Base.Index

The position after this position in the underlying collection.

var hashValue: Int

The hash value.

Instance Methods

func hash(into: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Operator Functions

static func != (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

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

static func < (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

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

static func <= (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> 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 == (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

Returns a Boolean value indicating whether two values are equal.

static func > (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

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

static func >= (ReversedCollection<Base>.Index, ReversedCollection<Base>.Index) -> Bool

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