You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: text/0000-contains-method-for-ranges.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ Lacks of generics (see Alternatives).
57
57
58
58
This trait provides the method `.contains()` and implements it for all the Range types.
59
59
60
-
## Add a `.contains(item: Self::Item)` iterator method
60
+
## Add a `.contains<I: PartialEq<Self::Item>>(i: I)` iterator method
61
61
62
62
This method returns a boolean, telling if the iterator contains the item given as parameter. Using method specialization, this can achieve the same performance as the method suggested in this RFC.
0 commit comments