mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
More doc updates
This commit is contained in:
14 files changed
+713
-57
No files matched your search
@@ -1,4 +1,98 @@
|
||||
# ``ContainersPreview/Box``
|
||||
# ``BasicContainers/RigidArray``
|
||||
|
||||
## Topics
|
||||
|
||||
### Creating a Rigid Array
|
||||
|
||||
- ``init()``
|
||||
- ``init(capacity:)``
|
||||
- ``init(capacity:initializingWith:)``
|
||||
- ``init(repeating:count:)``
|
||||
- ``init(consuming:)``
|
||||
- ``init(capacity:copying:)-(_,Sequence<Element>)``
|
||||
- ``init(capacity:copying:)-(_,Collection<Element>)``
|
||||
|
||||
### Inspecting a Rigid Array
|
||||
|
||||
- ``isEmpty``
|
||||
- ``isFull``
|
||||
- ``count``
|
||||
- ``capacity``
|
||||
- ``freeCapacity``
|
||||
|
||||
### Indices
|
||||
|
||||
- ``Index``
|
||||
- ``startIndex``
|
||||
- ``endIndex``
|
||||
- ``indices``
|
||||
|
||||
### Accessing Elements
|
||||
|
||||
- ``subscript(position:)``
|
||||
- ``swapAt(_:_:)``
|
||||
- ``edit(_:)``
|
||||
|
||||
### Memory Management
|
||||
|
||||
- ``reallocate(capacity:)``
|
||||
- ``reserveCapacity(_:)``
|
||||
- ``copy()``
|
||||
- ``copy(capacity:)``
|
||||
|
||||
### Spans
|
||||
|
||||
- ``span``
|
||||
- ``span(after:)``
|
||||
- ``span(before:)``
|
||||
- ``mutableSpan``
|
||||
- ``mutableSpan(after:)``
|
||||
- ``mutableSpan(before:)``
|
||||
|
||||
### Appending Items
|
||||
|
||||
- ``append(_:)``
|
||||
- ``pushLast(_:)``
|
||||
- ``append(count:initializingWith:)``
|
||||
- ``append(moving:)-(UnsafeMutableBufferPointer<Element>)``
|
||||
- ``append(moving:)-(OutputSpan<Element>)``
|
||||
- ``append(moving:)-(RigidArray<Element>)``
|
||||
- ``append(copying:)-(Sequence<Element>)``
|
||||
- ``append(copying:)-(Span<Element>)``
|
||||
- ``append(copying:)-(UnsafeBufferPointer<Element>)``
|
||||
- ``append(copying:)-(UnsafeMutableBufferPointer<Element>)``
|
||||
|
||||
### Inserting Items
|
||||
|
||||
- ``insert(_:at:)``
|
||||
- ``insert(count:at:initializingWith:)``
|
||||
- ``insert(moving:at:)-(OutputSpan<Element>,_)``
|
||||
- ``insert(moving:at:)-(RigidArray<Element>,_)``
|
||||
- ``insert(moving:at:)-(UnsafeMutableBufferPointer<Element>,_)``
|
||||
- ``insert(consuming:at:)``
|
||||
- ``insert(copying:at:)-(Collection<Element>,_)``
|
||||
- ``insert(copying:at:)-(Span<Element>,_)``
|
||||
- ``insert(copying:at:)-(UnsafeBufferPointer<Element>,_)``
|
||||
- ``insert(copying:at:)-(UnsafeMutableBufferPointer<Element>,_)``
|
||||
|
||||
### Replacing Items
|
||||
|
||||
- ``replaceSubrange(_:newCount:initializingWith:)``
|
||||
- ``replaceSubrange(_:moving:)-(_,OutputSpan<Element>)``
|
||||
- ``replaceSubrange(_:moving:)-(_,RigidArray<Element>))``
|
||||
- ``replaceSubrange(_:moving:)-(_,UnsafeMutableBufferPointer<Element>)``
|
||||
- ``replaceSubrange(_:consuming:)``
|
||||
- ``replaceSubrange(_:copying:)-(_,Collection<Element>)``
|
||||
- ``replaceSubrange(_:copying:)-(_,Span<Element>)``
|
||||
- ``replaceSubrange(_:copying:)-(_,UnsafeBufferPointer<Element>)``
|
||||
- ``replaceSubrange(_:copying:)-(_,UnsafeMutableBufferPointer<Element>)``
|
||||
|
||||
### Removing Items
|
||||
|
||||
- ``removeAll()``
|
||||
- ``removeLast()``
|
||||
- ``popLast()``
|
||||
- ``removeLast(_:)``
|
||||
- ``remove(at:)``
|
||||
- ``removeSubrange(_:)-(Range<Int>)``
|
||||
- ``removeSubrange(_:)-(RangeExpression<Int>)``
|
||||
@@ -8,6 +8,7 @@
|
||||
- ``init(capacity:)``
|
||||
- ``init(capacity:initializingWith:)``
|
||||
- ``init(repeating:count:)``
|
||||
- ``init(consuming:)``
|
||||
- ``init(capacity:copying:)-(_,Sequence<Element>)``
|
||||
- ``init(capacity:copying:)-(_,Collection<Element>)``
|
||||
|
||||
@@ -21,6 +22,7 @@
|
||||
|
||||
### Indices
|
||||
|
||||
- ``Index``
|
||||
- ``startIndex``
|
||||
- ``endIndex``
|
||||
- ``indices``
|
||||
|
||||
Reference in new issue
Block a user