File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 3030/// let b: InlineArray<_, Int> = [1, 2, 3]
3131/// let c: InlineArray<3, _> = [1, 2, 3]
3232/// let d: InlineArray = [1, 2, 3]
33- ///
33+ ///
3434/// let e: [3 of Int] = [1, 2, 3]
3535/// let f: [_ of Int] = [1, 2, 3]
3636/// let g: [3 of _] = [1, 2, 3]
@@ -606,3 +606,21 @@ extension InlineArray where Element: ~Copyable {
606606 }
607607 }
608608}
609+
610+ @available( SwiftStdlib 6.3 , * )
611+ extension InlineArray: Iterable where Element: ~ Copyable {
612+ public typealias BorrowIterator = Span< Element> . BorrowIterator
613+
614+ @_alwaysEmitIntoClient
615+ @_transparent
616+ public var estimatedCount : EstimatedCount {
617+ . exactly( count)
618+ }
619+
620+ @_alwaysEmitIntoClient
621+ @_lifetime ( borrow self)
622+ @_transparent
623+ public func startBorrowIteration( ) -> Span < Element > {
624+ span
625+ }
626+ }
You can’t perform that action at this time.
0 commit comments