Skip to content

Commit

Permalink
mob next [ci-skip] [ci skip] [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
prabhpreet committed Jan 15, 2022
1 parent f08c2af commit a305d97
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions src/adaptors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -867,11 +867,22 @@ where
debug_fmt_fields!(EnumerateOk, iter);
}

impl<I> Iterator for EnumerateOk<I> {
type Item;
impl<I,T,E> Iterator for EnumerateOk<I>
where I: Iterator<Item = Result<T,E>>,
{
type Item = Result<(usize,T),E>;

fn next(&mut self) -> Option<Self::Item> {
todo!()
match self.iter.next() {
Some(Ok(v)) =>
{
let index = self.index;

self.index += 1;
todo!();

}
}
}
}

Expand Down

0 comments on commit a305d97

Please sign in to comment.