We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Index
Span
1 parent 6802d22 commit 89956e7Copy full SHA for 89956e7
stdlib/public/core/Span/Span.swift
@@ -558,7 +558,9 @@ extension Span where Element: ~Copyable {
558
/// - Complexity: O(1)
559
@_alwaysEmitIntoClient
560
@lifetime(self)
561
- public func _extracting(_ bounds: some RangeExpression<Int>) -> Self {
+ public func _extracting(
562
+ _ bounds: some RangeExpression<Index>
563
+ ) -> Self {
564
_extracting(bounds.relative(to: indices))
565
}
566
@@ -581,7 +583,7 @@ extension Span where Element: ~Copyable {
581
583
582
584
585
public func _extracting(
- unchecked bounds: some RangeExpression<Int>
586
+ unchecked bounds: some RangeExpression<Index>
587
) -> Self {
588
unsafe _extracting(unchecked: bounds.relative(to: indices))
589
0 commit comments