SwiftstructCollectionsInternal
struct CollectionsInternal.Deque
Structure
What a query’s scopes step through. Every node here can be matched — see the syntax.
inherits{}
- protocolSwift.BidirectionalCollection
- protocolSwift.Collection
- protocolSwift.CustomReflectable
- protocolSwift.CustomStringConvertible
- protocolSwift.Decodable
- protocolSwift.Encodable
- protocolSwift.Equatable
- protocolSwift.ExpressibleByArrayLiteral
- protocolSwift.Hashable
- protocolSwift.MutableCollection
- protocolSwift.RandomAccessCollection
- protocolSwift.RangeReplaceableCollection
- protocolSwift.Sequence
Members 81
- func
static CollectionsInternal.Deque<A where A: Equatable>.== infix(CollectionsInternal.Deque<A>, CollectionsInternal.Deque<A>) -> Bool - var
static var _isConsistencyCheckingEnabled: Bool { get } - field
var _storage: CollectionsInternal.Deque<A>._Storage - func
_copyContents(initializing: UnsafeMutableBufferPointer<A>) -> (CollectionsInternal.Deque<A>.Iterator, Int) - func
_copyToContiguousArray() -> ContiguousArray<A> - func
_customRemoveLast() -> A? - func
_customRemoveLast(Int) -> Bool - func
_finalizeModify(CollectionsInternal._DequeSlot, A) -> () - func
_prepareForModify(at: Int) -> (CollectionsInternal._DequeSlot, A) - func
_withUnsafeMutableBufferPointerIfSupported<A>((inout UnsafeMutableBufferPointer<A>) throws -> A1) throws -> A1? - func
append<A where A == A1.Element, A1: Sequence>(contentsOf: A1) -> () - func
append<A where A == A1.Element, A1: Collection>(contentsOf: A1) -> () - func
append(A) -> () - func
distance(from: Int, to: Int) -> Int - func
CollectionsInternal.Deque<A where A: Encodable>.encode(to: Encoder) throws -> () - func
formIndex(after: inout Int) -> () - func
formIndex(before: inout Int) -> () - func
CollectionsInternal.Deque<A where A: Hashable>.hash(into: inout Hasher) -> () - func
index(after: Int) -> Int - func
index(before: Int) -> Int - func
index(_: Int, offsetBy: Int, limitedBy: Int) -> Int? - func
index(_: Int, offsetBy: Int) -> Int - func
insert<A where A == A1.Element, A1: Collection>(contentsOf: __owned A1, at: Int) -> () - func
insert(_: A, at: Int) -> () - func
makeIterator() -> CollectionsInternal.Deque<A>.Iterator - func
popFirst() -> A? - func
prepend<A where A == A1.Element, A1: Sequence>(contentsOf: A1) -> () - func
prepend<A where A == A1.Element, A1: Collection>(contentsOf: A1) -> () - func
prepend(A) -> () - func
remove(at: Int) -> A - func
removeAll(keepingCapacity: Bool) -> () - func
removeFirst() -> A - func
removeFirst(Int) -> () - func
removeSubrange(Range<Int>) -> () - func
replaceSubrange<A where A == A1.Element, A1: Collection>(_: Range<Int>, with: __owned A1) -> () - func
reserveCapacity(Int) -> () - func
swapAt(Int, Int) -> () - func
withContiguousMutableStorageIfAvailable<A>((inout UnsafeMutableBufferPointer<A>) throws -> A1) throws -> A1? - func
withContiguousStorageIfAvailable<A>((UnsafeBufferPointer<A>) throws -> A1) throws -> A1? - init
init(arrayLiteral: A...) -> CollectionsInternal.Deque<A> - init
init(minimumCapacity: Int) -> CollectionsInternal.Deque<A> - init
init(unsafeUninitializedCapacity: Int, initializingWith: (inout UnsafeMutableBufferPointer<A>, inout Int) throws -> ()) throws -> CollectionsInternal.Deque<A> - init
init(_storage: CollectionsInternal.Deque<A>._Storage) -> CollectionsInternal.Deque<A> - init
init<A where A == A1.Element, A1: Sequence>(_capacity: Int, startSlot: Int, contents: A1) -> CollectionsInternal.Deque<A> - init
init(repeating: A, count: Int) -> CollectionsInternal.Deque<A> - init
init() -> CollectionsInternal.Deque<A> - init
init<A where A == A1.Element, A1: Sequence>(A1) -> CollectionsInternal.Deque<A> - init
init<A where A == A1.Element, A1: Collection>(A1) -> CollectionsInternal.Deque<A> - init
CollectionsInternal.Deque<A where A: Decodable>.init(from: Decoder) throws -> CollectionsInternal.Deque<A> - subscript
subscript.getter : (Range<Int>) -> Slice<CollectionsInternal.Deque<A>> - subscript
subscript.getter : (Int) -> A - typealias
typealias ArrayLiteralElement = A - typealias
typealias Element = A - typealias
typealias Element = A - typealias
typealias Element = A - typealias
typealias Element = A - typealias
typealias Element = A - typealias
typealias Index = Swift.Int - typealias
typealias Index = Swift.Int - typealias
typealias Index = Swift.Int - typealias
typealias Index = Swift.Int - typealias
typealias Indices = Swift.Range<Swift.Int> - typealias
typealias Indices = Swift.Range<Swift.Int> - typealias
typealias Indices = Swift.Range<Swift.Int> - typealias
typealias Iterator = CollectionsInternal.Deque<A>.Iterator - typealias
typealias Iterator = CollectionsInternal.Deque<A>.Iterator - typealias
typealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>> - typealias
typealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>> - typealias
typealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>> - typealias
typealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>> - typealias
typealias SubSequence = Swift.Slice<CollectionsInternal.Deque<A>> - var
var _capacity: Int { get } - var
var _startSlot: Int { get } - var
var count: Int { get } - var
var customMirror: Mirror { get } - var
var debugDescription: String { get } - var
var description: String { get } - var
var endIndex: Int { get } - var
var hashValue: Int { get } - var
var indices: Range<Int> { get } - var
var startIndex: Int { get }
Header
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 } }