StructureSwift

    AnyBidirectionalCollection

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

    @frozen struct AnyBidirectionalCollection<Element>

    Overview

    An AnyBidirectionalCollection instance forwards its operations to a base collection having the same Element type, hiding the specifics of the underlying collection.

    Members

    Typealiases

    • typealias Index

      A type that represents a position in the collection.

    • typealias Indices

      A type that represents the indices that are valid for subscripting the collection, in ascending order.

    • typealias Iterator

      A type that provides the collection’s iteration interface and encapsulates its iteration state.

    • typealias SubSequence

      A collection representing a contiguous subrange of this collection’s elements. The subsequence shares indices with the original collection.

    Initializers

    Instance Subscripts

    Instance Properties

    Instance Methods

    Removed Members

    Instance Methods