_TinyArray

    TinyArray is a RandomAccessCollection optimised to store zero or one Element. It supports arbitrary many elements but if only up to one Element is stored it does not allocate separate storage on the heap and instead stores the Element inline.

    _TinyArray.swift:31
    struct _TinyArray<Element>

    Citizens in _NIODataStructures

    Conformances

    Types

    Show implementation details (1)

    Hide implementation details

    Typealiases

    Show implementation details (2)

    Hide implementation details

    Type members

    Show implementation details (3)

    Hide implementation details

    Instance members

    Show implementation details (9)

    Hide implementation details

    Instance features

    Show obsolete interfaces (2)

    Hide obsolete interfaces

    Citizens in _NIODataStructures

    where Element:Hashable

    Conformances

    • protocol Hashable

      A type that can be hashed into a Hasher to produce an integer hash value.

    Citizens in _NIODataStructures

    where Element:Equatable

    Conformances

    Type features

    Citizens in _NIODataStructures

    where Element:Sendable

    Conformances

    • protocol Sendable

      A type whose values can safely be passed across concurrency domains by copying.