_Strideable

protocol _Strideable

This protocol is an implementation detail of Strideable; do not use it directly.

Inheritance View Protocol Hierarchy →
Associated Types
Stride : SignedNumberType

A type that can represent the distance between two values of Self.

Import import Swift

Instance Methods

func advancedBy(_:) Required

Returns a Self x such that self.distanceTo(x) approximates n.

Complexity: O(1).

See Also: RandomAccessIndexType's advancedBy, which provides a stronger semantic guarantee.

Declaration

func advancedBy(n: Self.Stride) -> Self
func distanceTo(_:) Required

Returns a stride x such that self.advancedBy(x) approximates other.

Complexity: O(1).

See Also: RandomAccessIndexType's distanceTo, which provides a stronger semantic guarantee.

Declaration

func distanceTo(other: Self) -> Self.Stride