rust-itertools / itertools

Extra iterator adaptors, iterator methods, free functions, and macros.
https://docs.rs/itertools/
Apache License 2.0
2.69k stars 303 forks source link

`Diff`: implement `Debug` and `Clone` #845

Closed Philippe-Cholet closed 7 months ago

Philippe-Cholet commented 7 months ago

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.