Skip to content

Additional traits for reference iterators#12

Open
vorner wants to merge 1 commit intobodil:masterfrom
vorner:iter-traits
Open

Additional traits for reference iterators#12
vorner wants to merge 1 commit intobodil:masterfrom
vorner:iter-traits

Conversation

@vorner
Copy link
Copy Markdown
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
Copy Markdown
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