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.
2 parents d7f0b88 + 85cbabb commit 25091edCopy full SHA for 25091ed
src/libcore/iter/adapters/mod.rs
@@ -200,6 +200,18 @@ where
200
{
201
self.it.fold(init, copy_fold(f))
202
}
203
+
204
+ fn nth(&mut self, n: usize) -> Option<T> {
205
+ self.it.nth(n).copied()
206
+ }
207
208
+ fn last(self) -> Option<T> {
209
+ self.it.last().copied()
210
211
212
+ fn count(self) -> usize {
213
+ self.it.count()
214
215
216
217
#[stable(feature = "iter_copied", since = "1.36.0")]
0 commit comments