bitvec icon indicating copy to clipboard operation
bitvec copied to clipboard

Can I implement `TrustedLen` for wrapper of `Iter` and `BitValIter`?

Open YjyJeff opened this issue 2 years ago • 0 comments

I am using bitvec in my own project. I need the iterator that implement the TrustedLen in my API, such that I can do some optimization. Can I implement the TrustedLen for the wrapper of Iter and BitValIter?

AFAIK, I can do it. BitPtrRange knows the accurate length. Am I right?

Thanks in advance!

YjyJeff avatar Apr 17 '23 07:04 YjyJeff