We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b90e510 commit 2007987Copy full SHA for 2007987
src/libcore/iter/mod.rs
@@ -359,11 +359,19 @@ impl<I> Iterator for Rev<I> where I: DoubleEndedIterator {
359
#[inline]
360
fn size_hint(&self) -> (usize, Option<usize>) { self.iter.size_hint() }
361
362
+ #[inline]
363
fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
364
where P: FnMut(&Self::Item) -> bool
365
{
366
self.iter.rfind(predicate)
367
}
368
+
369
370
+ fn rposition<P>(&mut self, predicate: P) -> Option<usize> where
371
+ P: FnMut(Self::Item) -> bool
372
+ {
373
+ self.iter.position(predicate)
374
+ }
375
376
377
#[stable(feature = "rust1", since = "1.0.0")]
0 commit comments