3 ms·
But Iterator's next() returns an Option, not a Result.
by glandium 10y ago
But Iterator's next() returns an Option, not a Result.
- catnaroek 10y agoI don't see why you'd want to manipulate iterators by hand, unless you're implementing custom iterators. But, in any case: try!(iter.next().ok_or("end of sequence")) EDIT: Sorry. I was just being dense.