mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
[ContainersPreview] Exhibit A in the case against prototyping things in the stdlib 😞
This commit is contained in:
56 files changed
+200
-98
No files matched your search
@@ -102,6 +102,7 @@ extension UniqueArray /*where Element: Copyable*/ {
|
||||
/// just enough capacity to store the contents.
|
||||
/// - contents: A sequence whose contents to copy into the new array.
|
||||
/// The sequence must not contain more than `capacity` elements.
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(__always)
|
||||
public init<Source: BorrowingSequence<Element> & ~Copyable & ~Escapable>(
|
||||
@@ -138,6 +139,7 @@ extension UniqueArray /*where Element: Copyable*/ {
|
||||
/// - capacity: The storage capacity of the new array, or nil to allocate
|
||||
/// just enough capacity to store the contents.
|
||||
/// - contents: The container whose contents to copy into the new array.
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
@_alwaysEmitIntoClient
|
||||
@inline(__always)
|
||||
public init<Source: BorrowingSequence<Element> & Sequence<Element>>(
|
||||
|
||||
Reference in new issue
Block a user