Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I implement TrustedLen for wrapper of Iter and BitValIter? #221

Open
YjyJeff opened this issue Apr 17, 2023 · 0 comments
Open

Can I implement TrustedLen for wrapper of Iter and BitValIter? #221

YjyJeff opened this issue Apr 17, 2023 · 0 comments

Comments

@YjyJeff
Copy link

YjyJeff commented Apr 17, 2023

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant