The inner iterator is simply a slice::Iter, so all of these can be done in constant time. Ideally, we would override advance_by, but that's still unstable.
With this, it is possible to build a poor man's retain, which was requested in #541. On that topic: would you be open to merge a PR adding retain? Then I might start working on that.
The
inner
iterator is simply aslice::Iter
, so all of these can be done in constant time. Ideally, we would overrideadvance_by
, but that's still unstable.With this, it is possible to build a poor man's
retain
, which was requested in #541. On that topic: would you be open to merge a PR addingretain
? Then I might start working on that.