mirror of
https://github.com/apple/swift-collections
synced 2026-11-27 04:54:21 +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
@@ -19,7 +19,7 @@ import ContainersPreview
|
||||
#if compiler(>=6.2)
|
||||
|
||||
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray: BorrowingSequence where Element: ~Copyable {
|
||||
public typealias BorrowingIterator = RigidArray<Element>.BorrowingIterator
|
||||
|
||||
@@ -35,23 +35,23 @@ extension UniqueArray: BorrowingSequence where Element: ~Copyable {
|
||||
#endif
|
||||
|
||||
#if compiler(>=6.4) && COLLECTIONS_UNSTABLE_CONTAINERS_PREVIEW
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray: Container where Element: ~Copyable {}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray: BidirectionalContainer where Element: ~Copyable {}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray: RandomAccessContainer where Element: ~Copyable {}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray: MutableContainer where Element: ~Copyable {}
|
||||
|
||||
#if compiler(>=6.3)
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray: RangeReplaceableContainer where Element: ~Copyable {}
|
||||
|
||||
@available(SwiftStdlib 5.0, *)
|
||||
@available(SwiftStdlib 6.4, *)
|
||||
extension UniqueArray: DynamicContainer where Element: ~Copyable {}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user