SwiftstructCollectionsInternal

struct CollectionsInternal.Deque

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

Members 81

  1. funcstatic CollectionsInternal.Deque<A where A: Equatable>.== infix(CollectionsInternal.Deque<A>, CollectionsInternal.Deque<A>) -> Bool
  2. varstatic var _isConsistencyCheckingEnabled: Bool { get }
  3. fieldvar _storage: CollectionsInternal.Deque<A>._Storage
  4. func_copyContents(initializing: UnsafeMutableBufferPointer<A>) -> (CollectionsInternal.Deque<A>.Iterator, Int)
  5. func_copyToContiguousArray() -> ContiguousArray<A>
  6. func_customRemoveLast() -> A?
  7. func_customRemoveLast(Int) -> Bool
  8. func_finalizeModify(CollectionsInternal._DequeSlot, A) -> ()
  9. func_prepareForModify(at: Int) -> (CollectionsInternal._DequeSlot, A)
  10. func_withUnsafeMutableBufferPointerIfSupported<A>((inout UnsafeMutableBufferPointer<A>) throws -> A1) throws -> A1?
  11. funcappend<A where A == A1.Element, A1: Sequence>(contentsOf: A1) -> ()
  12. funcappend<A where A == A1.Element, A1: Collection>(contentsOf: A1) -> ()
  13. funcappend(A) -> ()
  14. funcdistance(from: Int, to: Int) -> Int
  15. funcCollectionsInternal.Deque<A where A: Encodable>.encode(to: Encoder) throws -> ()
  16. funcformIndex(after: inout Int) -> ()
  17. funcformIndex(before: inout Int) -> ()
  18. funcCollectionsInternal.Deque<A where A: Hashable>.hash(into: inout Hasher) -> ()
  19. funcindex(after: Int) -> Int
  20. funcindex(before: Int) -> Int
  21. funcindex(_: Int, offsetBy: Int, limitedBy: Int) -> Int?
  22. funcindex(_: Int, offsetBy: Int) -> Int
  23. funcinsert<A where A == A1.Element, A1: Collection>(contentsOf: __owned A1, at: Int) -> ()
  24. funcinsert(_: A, at: Int) -> ()
  25. funcmakeIterator() -> CollectionsInternal.Deque<A>.Iterator
  26. funcpopFirst() -> A?
  27. funcprepend<A where A == A1.Element, A1: Sequence>(contentsOf: A1) -> ()
  28. funcprepend<A where A == A1.Element, A1: Collection>(contentsOf: A1) -> ()
  29. funcprepend(A) -> ()
  30. funcremove(at: Int) -> A
  31. funcremoveAll(keepingCapacity: Bool) -> ()
  32. funcremoveFirst() -> A
  33. funcremoveFirst(Int) -> ()
  34. funcremoveSubrange(Range<Int>) -> ()
  35. funcreplaceSubrange<A where A == A1.Element, A1: Collection>(_: Range<Int>, with: __owned A1) -> ()
  36. funcreserveCapacity(Int) -> ()
  37. funcswapAt(Int, Int) -> ()
  38. funcwithContiguousMutableStorageIfAvailable<A>((inout UnsafeMutableBufferPointer<A>) throws -> A1) throws -> A1?
  39. funcwithContiguousStorageIfAvailable<A>((UnsafeBufferPointer<A>) throws -> A1) throws -> A1?
  40. initinit(arrayLiteral: A...) -> CollectionsInternal.Deque<A>
  41. initinit(minimumCapacity: Int) -> CollectionsInternal.Deque<A>
  42. initinit(unsafeUninitializedCapacity: Int, initializingWith: (inout UnsafeMutableBufferPointer<A>, inout Int) throws -> ()) throws -> CollectionsInternal.Deque<A>
  43. initinit(_storage: CollectionsInternal.Deque<A>._Storage) -> CollectionsInternal.Deque<A>
  44. initinit<A where A == A1.Element, A1: Sequence>(_capacity: Int, startSlot: Int, contents: A1) -> CollectionsInternal.Deque<A>
  45. initinit(repeating: A, count: Int) -> CollectionsInternal.Deque<A>
  46. initinit() -> CollectionsInternal.Deque<A>
  47. initinit<A where A == A1.Element, A1: Sequence>(A1) -> CollectionsInternal.Deque<A>
  48. initinit<A where A == A1.Element, A1: Collection>(A1) -> CollectionsInternal.Deque<A>
  49. initCollectionsInternal.Deque<A where A: Decodable>.init(from: Decoder) throws -> CollectionsInternal.Deque<A>
  50. subscriptsubscript.getter : (Range<Int>) -> Slice<CollectionsInternal.Deque<A>>
  51. subscriptsubscript.getter : (Int) -> A
  52. typealiastypealias ArrayLiteralElement = A
  53. typealiastypealias Element = A
  54. typealiastypealias Element = A
  55. typealiastypealias Element = A
  56. typealiastypealias Element = A
  57. typealiastypealias Element = A
  58. typealiastypealias Index = Swift.Int
  59. typealiastypealias Index = Swift.Int
  60. typealiastypealias Index = Swift.Int
  61. typealiastypealias Index = Swift.Int
  62. typealiastypealias Indices = Swift.Range<Swift.Int>
  63. typealiastypealias Indices = Swift.Range<Swift.Int>
  64. typealiastypealias Indices = Swift.Range<Swift.Int>
  65. typealiastypealias Iterator = CollectionsInternal.Deque<A>.Iterator
  66. typealiastypealias Iterator = CollectionsInternal.Deque<A>.Iterator
  67. typealiastypealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>>
  68. typealiastypealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>>
  69. typealiastypealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>>
  70. typealiastypealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>>
  71. typealiastypealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>>
  72. varvar _capacity: Int { get }
  73. varvar _startSlot: Int { get }
  74. varvar count: Int { get }
  75. varvar customMirror: Mirror { get }
  76. varvar debugDescription: String { get }
  77. varvar description: String { get }
  78. varvar endIndex: Int { get }
  79. varvar hashValue: Int { get }
  80. varvar indices: Range<Int> { get }
  81. varvar startIndex: Int { get }
struct Deque<A> {
    struct _Storage {
        var _buffer: Swift.ManagedBufferPointer<CollectionsInternal._DequeBufferHeader, A>

        init(minimumCapacity: Swift.Int)
        init(_buffer: Swift.ManagedBufferPointer<CollectionsInternal._DequeBufferHeader, A>)
        init()
        init(_: CollectionsInternal._DequeBuffer<A>)

        var capacity: Swift.Int {
            get
        }
        var count: Swift.Int {
            get
        }
        var description: Swift.String {
            get
        }
        var identity: Swift.AnyObject {
            get
        }
        var startSlot: CollectionsInternal._DequeSlot {
            get
        }

        func isIdentical(to: CollectionsInternal.Deque<A>._Storage) -> Swift.Bool
        func ensureUnique(minimumCapacity: Swift.Int, linearGrowth: Swift.Bool)
        func ensureUnique()
        func _ensureUnique(isUnique: Swift.Bool, minimumCapacity: Swift.Int, linearGrowth: Swift.Bool)
        func _growCapacity(to: Swift.Int, linearly: Swift.Bool) -> Swift.Int
        func _makeUniqueCopy()
        func _checkInvariants()
        func read<A1>(_: (_: CollectionsInternal.Deque<A>._UnsafeHandle) throws -> A1) throws -> A1
        func update<A1>(_: (_: CollectionsInternal.Deque<A>._UnsafeHandle) throws -> A1) throws -> A1
        func isUnique() -> Swift.Bool
    }
    struct _UnsafeHandle {
        let _header: Swift.UnsafeMutablePointer<CollectionsInternal._DequeBufferHeader>
        let _elements: Swift.UnsafeMutablePointer<A>

        init(header: Swift.UnsafeMutablePointer<CollectionsInternal._DequeBufferHeader>, elements: Swift.UnsafeMutablePointer<A>, isMutable: Swift.Bool)

        var capacity: Swift.Int {
            get
        }
        var count: Swift.Int {
            get
            set
        }
        var endSlot: CollectionsInternal._DequeSlot {
            get
        }
        var header: CollectionsInternal._DequeBufferHeader {
            get
        }
        var limSlot: CollectionsInternal._DequeSlot {
            get
        }
        var mutableBuffer: Swift.UnsafeMutableBufferPointer<A> {
            get
        }
        var startSlot: CollectionsInternal._DequeSlot {
            get
            set
        }

        func withUnsafeSegment<A1>(startingAt: Swift.Int, maximumCount: Swift.Int?, _: (_: Swift.UnsafeBufferPointer<A>) throws -> A1) throws -> (end: Swift.Int, result: A1)
        func initialize(at: CollectionsInternal._DequeSlot, from: Swift.UnsafeBufferPointer<A>) -> CollectionsInternal._DequeSlot
        func copyElements(minimumCapacity: Swift.Int) -> CollectionsInternal.Deque<A>._Storage
        func copyElements() -> CollectionsInternal.Deque<A>._Storage
        func moveElements(minimumCapacity: Swift.Int) -> CollectionsInternal.Deque<A>._Storage
        func assertMutable()
        func mutableBuffer(for: Swift.Range<CollectionsInternal._DequeSlot>) -> Swift.UnsafeMutableBufferPointer<A>
        func moveInitialize(at: CollectionsInternal._DequeSlot, from: Swift.UnsafeMutableBufferPointer<A>) -> CollectionsInternal._DequeSlot
        func mutableSegments(forOffsets: Swift.Range<Swift.Int>) -> CollectionsInternal._UnsafeMutableDequeSegments<A>
        func mutableSegments() -> CollectionsInternal._UnsafeMutableDequeSegments<A>
        func uncheckedAppend(contentsOf: Swift.UnsafeBufferPointer<A>)
        func uncheckedAppend(_: A)
        func uncheckedInsert<A1>(contentsOf: consuming A1, count: Swift.Int, atOffset: Swift.Int) where A == A1.Element, A1: Swift.Collection
        func uncheckedRemove(offsets: Swift.Range<Swift.Int>)
        func uncheckedPrepend(contentsOf: Swift.UnsafeBufferPointer<A>)
        func uncheckedPrepend(_: A)
        func availableSegments() -> CollectionsInternal._UnsafeMutableDequeSegments<A>
        func uncheckedRemoveAll()
        func uncheckedRemoveLast() -> A
        func uncheckedRemoveLast(_: Swift.Int)
        func mutableWrappedBuffer(between: CollectionsInternal._DequeSlot, and: CollectionsInternal._DequeSlot) -> CollectionsInternal._UnsafeMutableDequeSegments<A>
        func uncheckedRemoveFirst() -> A
        func uncheckedRemoveFirst(_: Swift.Int)
        func uncheckedReplaceInPlace<A1>(inOffsets: Swift.Range<Swift.Int>, with: A1) where A == A1.Element, A1: Swift.Collection
        func ptr(at: CollectionsInternal._DequeSlot) -> Swift.UnsafeMutablePointer<A>
        func move(from: CollectionsInternal._DequeSlot, to: CollectionsInternal._DequeSlot, count: Swift.Int) -> (source: CollectionsInternal._DequeSlot, target: CollectionsInternal._DequeSlot)
        func slot(after: CollectionsInternal._DequeSlot) -> CollectionsInternal._DequeSlot
        func slot(before: CollectionsInternal._DequeSlot) -> CollectionsInternal._DequeSlot
        func slot(forOffset: Swift.Int) -> CollectionsInternal._DequeSlot
        func slot(_: CollectionsInternal._DequeSlot, offsetBy: Swift.Int) -> CollectionsInternal._DequeSlot
        func buffer(for: Swift.Range<CollectionsInternal._DequeSlot>) -> Swift.UnsafeBufferPointer<A>
        func openGap(ofSize: Swift.Int, atOffset: Swift.Int) -> CollectionsInternal._UnsafeMutableDequeSegments<A>
        func closeGap(offsets: Swift.Range<Swift.Int>)
        func segments(forOffsets: Swift.Range<Swift.Int>) -> CollectionsInternal._UnsafeDequeSegments<A>
        func segments() -> CollectionsInternal._UnsafeDequeSegments<A>
    }
    struct Iterator {
        var _storage: CollectionsInternal.Deque<A>._Storage
        var _nextSlot: CollectionsInternal._DequeSlot
        var _endSlot: CollectionsInternal._DequeSlot

        init(_base: CollectionsInternal.Deque<A>, from: Swift.Int)
        init(_base: CollectionsInternal.Deque<A>)
        init(_storage: CollectionsInternal.Deque<A>._Storage, start: CollectionsInternal._DequeSlot, end: CollectionsInternal._DequeSlot)

        func _swapSegment() -> Swift.Bool
        func next() -> A?
    }
    var _storage: CollectionsInternal.Deque<A>._Storage

    init(arrayLiteral: A...)
    init(minimumCapacity: Swift.Int)
    init(unsafeUninitializedCapacity: Swift.Int, initializingWith: (inout Swift.UnsafeMutableBufferPointer<A>, inout Swift.Int) throws -> ()) throws
    init(_storage: CollectionsInternal.Deque<A>._Storage)
    init<A1>(_capacity: Swift.Int, startSlot: Swift.Int, contents: A1) where A == A1.Element, A1: Swift.Sequence
    init(repeating: A, count: Swift.Int)
    init()
    init<A1>(_: A1) where A == A1.Element, A1: Swift.Sequence
    init<A1>(_: A1) where A == A1.Element, A1: Swift.Collection

    var _capacity: Swift.Int {
        get
    }
    var _startSlot: Swift.Int {
        get
    }
    var count: Swift.Int {
        get
    }
    var customMirror: Swift.Mirror {
        get
    }
    var debugDescription: Swift.String {
        get
    }
    var description: Swift.String {
        get
    }
    var endIndex: Swift.Int {
        get
    }
    var indices: Swift.Range<Swift.Int> {
        get
    }
    var startIndex: Swift.Int {
        get
    }

    func removeFirst() -> A
    func removeFirst(_: Swift.Int)
    func makeIterator() -> CollectionsInternal.Deque<A>.Iterator
    func _copyContents(initializing: Swift.UnsafeMutableBufferPointer<A>) -> (CollectionsInternal.Deque<A>.Iterator, Swift.Int)
    func removeSubrange(_: Swift.Range<Swift.Int>)
    func _finalizeModify(_: CollectionsInternal._DequeSlot, _: A)
    func replaceSubrange<A1>(_: Swift.Range<Swift.Int>, with: consuming A1) where A == A1.Element, A1: Swift.Collection
    func reserveCapacity(_: Swift.Int)
    func _customRemoveLast() -> A?
    func _customRemoveLast(_: Swift.Int) -> Swift.Bool
    func _prepareForModify(at: Swift.Int) -> (CollectionsInternal._DequeSlot, A)
    func _copyToContiguousArray() -> Swift.ContiguousArray<A>
    func withContiguousStorageIfAvailable<A1>(_: (_: Swift.UnsafeBufferPointer<A>) throws -> A1) throws -> A1?
    func withContiguousMutableStorageIfAvailable<A1>(_: (_: inout Swift.UnsafeMutableBufferPointer<A>) throws -> A1) throws -> A1?
    func _withUnsafeMutableBufferPointerIfSupported<A1>(_: (_: inout Swift.UnsafeMutableBufferPointer<A>) throws -> A1) throws -> A1?
    func index(after: Swift.Int) -> Swift.Int
    func index(before: Swift.Int) -> Swift.Int
    func index(_: Swift.Int, offsetBy: Swift.Int, limitedBy: Swift.Int) -> Swift.Int?
    func index(_: Swift.Int, offsetBy: Swift.Int) -> Swift.Int
    func append<A1>(contentsOf: A1) where A == A1.Element, A1: Swift.Sequence
    func append<A1>(contentsOf: A1) where A == A1.Element, A1: Swift.Collection
    func append(_: A)
    func insert<A1>(contentsOf: consuming A1, at: Swift.Int) where A == A1.Element, A1: Swift.Collection
    func insert(_: A, at: Swift.Int)
    func remove(at: Swift.Int) -> A
    func swapAt(_: Swift.Int, _: Swift.Int)
    func prepend<A1>(contentsOf: A1) where A == A1.Element, A1: Swift.Sequence
    func prepend<A1>(contentsOf: A1) where A == A1.Element, A1: Swift.Collection
    func prepend(_: A)
    func distance(from: Swift.Int, to: Swift.Int) -> Swift.Int
    func popFirst() -> A?
    func formIndex(after: inout Swift.Int)
    func formIndex(before: inout Swift.Int)
    func removeAll(keepingCapacity: Swift.Bool)

    subscript(_: Swift.Range<Swift.Int>) -> Swift.Slice<CollectionsInternal.Deque<A>> {
        get
        set
    }
    subscript(_: Swift.Int) -> A {
        get
        set
    }

    static var _isConsistencyCheckingEnabled: Swift.Bool {
        get
    }
}