We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e392f5d + 830ecbd commit 8f9f3aaCopy full SHA for 8f9f3aa
library/core/src/iter/range.rs
@@ -672,6 +672,11 @@ impl<A: Step> Iterator for ops::Range<A> {
672
self.next_back()
673
}
674
675
+ #[inline]
676
+ fn is_sorted(self) -> bool {
677
+ true
678
+ }
679
+
680
#[inline]
681
#[doc(hidden)]
682
unsafe fn __iterator_get_unchecked(&mut self, idx: usize) -> Self::Item
@@ -1095,6 +1100,11 @@ impl<A: Step> Iterator for ops::RangeInclusive<A> {
1095
1100
fn max(mut self) -> Option<A> {
1096
1101
1097
1102
1103
1104
1105
1106
1107
1098
1108
1099
1109
1110
#[stable(feature = "inclusive_range", since = "1.26.0")]
0 commit comments