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

Additional traits for reference iterators #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vorner
Copy link
Contributor

@vorner vorner commented Nov 4, 2020

Most importantly, Clone. See bodil/im-rs#134.

Piggy-backing Debug when at it, because, why not.

Not implementing Copy even where it would be possible, as that could
turn into footgun (iterators "forking").

Not implementing Clone on consuming iterators, as that also clones the
elements and that's probably not intended.

Note: I'm submitting it now, but it depends on bodil/bitmaps#4 (currently pulls a git based dependency, which needs to be removed before merging).

Most importantly, Clone. See bodil/im-rs#134.

Piggy-backing Debug when possible, because, why not.

Not implementing Copy even where it would be possible, as that could
turn into footgun (iterators "forking").

Not implementing Clone on consuming iterators, as that also clones the
elements and that's probably not intended.
@vorner
Copy link
Contributor Author

vorner commented Nov 4, 2020

🤔 What's up with the coverage? I admit I don't test the derived trait (should I?), but it seems the change of coverage is empty and the change of percents is just effect of making the files longer.

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

Successfully merging this pull request may close these issues.

1 participant