mirror of
https://github.com/apple/swift-collections
synced 2026-11-26 04:47:48 +00:00
[ContainersPreview] Borrow ⟹ Ref
Also update the type’s public API surface to reflect SE-0519, leaving deprecated aliases for the old names.
This commit is contained in:
20 files changed
+239
-141
No files matched your search
@@ -46,7 +46,7 @@ extension UniqueArray where Element: ~Copyable {
|
||||
@inlinable
|
||||
@inline(__always)
|
||||
@_lifetime(borrow self)
|
||||
public func borrowElement(at index: Int) -> Borrow<Element> {
|
||||
public func borrowElement(at index: Int) -> Ref<Element> {
|
||||
_storage.borrowElement(at: index)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user