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

Diff: implement Debug and Clone #845

Merged

Conversation

Philippe-Cholet
Copy link
Member

Closes #438.

I'm not sure to see the point of being able to clone Diff ; but it should at least implement Debug.

They can't be derived because of missing constraints on ::Item.
And we don't have macros to implement Debug and Clone for enums in a shorter way so it's manual.

We can not derive Debug.
I checked, an usual debugged enum does not display the name of the type but only the variant name.
Implementation can not be derived either.
@Philippe-Cholet Philippe-Cholet added this to the next milestone Jan 13, 2024
@Philippe-Cholet Philippe-Cholet added this pull request to the merge queue Jan 16, 2024
Merged via the queue into rust-itertools:master with commit eeda182 Jan 16, 2024
9 checks passed
@Philippe-Cholet Philippe-Cholet deleted the diff-debug-clone branch January 16, 2024 17:18
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.

2 participants