mirror of
https://github.com/apple/swift-collections
synced 2026-11-27 04:54:21 +00:00
_BString: Add conversion initializers from all views
This commit is contained in:
5 files changed
+36
-2
No files matched your search
@@ -26,6 +26,10 @@ extension _BString {
|
||||
internal var utf8: UTF8View {
|
||||
UTF8View(_base: self)
|
||||
}
|
||||
|
||||
internal init(_ utf8: UTF8View) {
|
||||
self = utf8._base
|
||||
}
|
||||
}
|
||||
|
||||
@available(macOS 13.3, iOS 16.4, watchOS 9.4, tvOS 16.4, *)
|
||||
|
||||
Reference in new issue
Block a user