mirror of
https://github.com/apple/swift-collections
synced 2026-11-25 04:37:48 +00:00
Renaming BorrowingSequence_ to Iterable_
This commit is contained in:
1 parent
232e6aeacf
commit
4bda43f4a9
53 files changed
+197
-197
No files matched your search
@@ -310,12 +310,12 @@ extension UniqueArray {
|
||||
#if compiler(>=6.4) && UnstableContainersPreview
|
||||
@inlinable
|
||||
internal mutating func _append<
|
||||
Source: BorrowingSequence_<Element> & ~Copyable & ~Escapable
|
||||
Source: Iterable_<Element> & ~Copyable & ~Escapable
|
||||
>(
|
||||
copying newElements: borrowing Source
|
||||
) {
|
||||
_ensureFreeCapacity(newElements.underestimatedCount_)
|
||||
var it = newElements.makeBorrowingIterator_()
|
||||
var it = newElements.makeIterableIterator_()
|
||||
while true {
|
||||
let span = it.nextSpan_()
|
||||
if span.isEmpty { break }
|
||||
@@ -343,7 +343,7 @@ extension UniqueArray {
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(__always)
|
||||
public mutating func append<
|
||||
Source: BorrowingSequence_<Element> & ~Copyable & ~Escapable
|
||||
Source: Iterable_<Element> & ~Copyable & ~Escapable
|
||||
>(
|
||||
copying newElements: borrowing Source
|
||||
) {
|
||||
@@ -397,7 +397,7 @@ extension UniqueArray {
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(__always)
|
||||
public mutating func append<
|
||||
Source: BorrowingSequence_<Element> & Sequence<Element>
|
||||
Source: Iterable_<Element> & Sequence<Element>
|
||||
>(copying newElements: Source) {
|
||||
self._append(copying: newElements)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user