A wrapper over an underlying index that hides the specific underlying type.
SDK
- Xcode 8.0+
Framework
- Swift Standard Library
Declaration
@frozen struct AnyIndex
A wrapper over an underlying index that hides the specific underlying type.
SDK
Framework
@frozen struct AnyIndex
init<Base Index>(Base Index)Creates a new index wrapping base.
static func != (Any Index, Any Index) -> BoolReturns a Boolean value indicating whether two values are not equal.
static func ... (Any Index) -> Partial Range Through<Any Index>Returns a partial range up to, and including, its upper bound.
static func ... (Any Index) -> Partial Range From<Any Index>Returns a partial range extending upward from a lower bound.
static func ... (Any Index, Any Index) -> Closed Range<Any Index>Returns a closed range that contains both of its bounds.
static func ..< (Any Index) -> Partial Range Up To<Any Index>Returns a partial range up to, but not including, its upper bound.
static func ..< (Any Index, Any Index) -> Range<Any Index>Returns a half-open range that contains its lower bound but not its upper bound.
static func < (Any Index, Any Index) -> BoolReturns a Boolean value indicating whether the first argument represents a position before the second argument.
static func <= (Any Index, Any Index) -> BoolReturns a Boolean value indicating whether the value of the first argument is less than or equal to that of the second argument.
static func == (Any Index, Any Index) -> BoolReturns a Boolean value indicating whether two indices wrap equal underlying indices.
static func > (Any Index, Any Index) -> BoolReturns a Boolean value indicating whether the value of the first argument is greater than that of the second argument.
static func >= (Any Index, Any Index) -> BoolReturns a Boolean value indicating whether the value of the first argument is greater than or equal to that of the second argument.
struct Any SequenceA type-erased sequence.
struct Any CollectionA type-erased wrapper over any collection with indices that support forward traversal.
struct Any Bidirectional CollectionA type-erased wrapper over any collection with indices that support bidirectional traversal.
struct Any Random Access CollectionA type-erased wrapper over any collection with indices that support random access traversal.
struct Any IteratorA type-erased iterator of Element.
struct Any HashableA type-erased hashable value.