File tree Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Expand file tree Collapse file tree 4 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1267,6 +1267,7 @@ extension Collection {
1267
1267
///
1268
1268
/// - Complexity: Hopefully less than O(`count`).
1269
1269
@inlinable
1270
+ @inline ( __always)
1270
1271
public // dispatching
1271
1272
func _customIndexOfEquatableElement( _: Element ) -> Index ? ? {
1272
1273
return nil
@@ -1283,6 +1284,7 @@ extension Collection {
1283
1284
///
1284
1285
/// - Complexity: Hopefully less than O(`count`).
1285
1286
@inlinable
1287
+ @inline ( __always)
1286
1288
public // dispatching
1287
1289
func _customLastIndexOfEquatableElement( _ element: Element ) -> Index ? ? {
1288
1290
return nil
@@ -1802,6 +1804,7 @@ extension Collection where SubSequence == Self {
1802
1804
1803
1805
extension Collection {
1804
1806
@inlinable
1807
+ @inline ( __always)
1805
1808
public func _preprocessingPass< R> (
1806
1809
_ preprocess: ( ) throws -> R
1807
1810
) rethrows -> R ? {
Original file line number Diff line number Diff line change @@ -1383,16 +1383,19 @@ extension Dictionary {
1383
1383
}
1384
1384
1385
1385
@inlinable
1386
+ @inline ( __always)
1386
1387
public func _customContainsEquatableElement( _ element: Element ) -> Bool ? {
1387
1388
return _variant. contains ( element)
1388
1389
}
1389
1390
1390
1391
@inlinable
1392
+ @inline ( __always)
1391
1393
public func _customIndexOfEquatableElement( _ element: Element ) -> Index ? ? {
1392
1394
return Optional ( _variant. index ( forKey: element) )
1393
1395
}
1394
1396
1395
1397
@inlinable
1398
+ @inline ( __always)
1396
1399
public func _customLastIndexOfEquatableElement( _ element: Element ) -> Index ? ? {
1397
1400
// The first and last elements are the same because each element is unique.
1398
1401
return _customIndexOfEquatableElement ( element)
Original file line number Diff line number Diff line change @@ -905,13 +905,15 @@ extension Sequence {
905
905
}
906
906
907
907
@inlinable
908
+ @inline ( __always)
908
909
public func _preprocessingPass< R> (
909
910
_ preprocess: ( ) throws -> R
910
911
) rethrows -> R ? {
911
912
return nil
912
913
}
913
914
914
915
@inlinable
916
+ @inline ( __always)
915
917
public func _customContainsEquatableElement(
916
918
_ element: Iterator . Element
917
919
) -> Bool ? {
Original file line number Diff line number Diff line change @@ -266,6 +266,7 @@ extension Set: Sequence {
266
266
}
267
267
268
268
@inlinable
269
+ @inline ( __always)
269
270
public func _customContainsEquatableElement( _ member: Element ) -> Bool ? {
270
271
return contains ( member)
271
272
}
@@ -361,13 +362,15 @@ extension Set: Collection {
361
362
}
362
363
363
364
@inlinable
365
+ @inline ( __always)
364
366
public func _customIndexOfEquatableElement(
365
367
_ member: Element
366
368
) -> Index ? ? {
367
369
return Optional ( firstIndex ( of: member) )
368
370
}
369
371
370
372
@inlinable
373
+ @inline ( __always)
371
374
public func _customLastIndexOfEquatableElement(
372
375
_ member: Element
373
376
) -> Index ? ? {
You can’t perform that action at this time.
0 commit comments