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.
1 parent 680ebf7 commit 3d9c36fCopy full SHA for 3d9c36f
src/libcore/iter/range.rs
@@ -305,6 +305,11 @@ impl<A: Step> Iterator for ops::RangeFrom<A> {
305
self.start = plus_n.add_one();
306
Some(plus_n)
307
}
308
+
309
+ #[inline]
310
+ fn min(self) -> Option<A> {
311
+ Some(self.start)
312
+ }
313
314
315
#[unstable(feature = "fused", issue = "35602")]
@@ -368,6 +373,11 @@ impl<A: Step> Iterator for ops::RangeInclusive<A> {
368
373
None
369
374
370
375
376
377
+ fn last(self) -> Option<A> {
378
+ Some(self.end)
379
380
371
381
#[inline]
372
382
fn min(self) -> Option<A> {
383
Some(self.start)
0 commit comments