Implement Eq and PartialEq for Rev?

Is there any reason not to add Eq and PartialEq to the #[derive(..)] of std::iter::Rev?

Iterators generally don't implement Eq and PartialEq.

6 Likes

Perhaps you're looking for cmp::Reverse, which does implement it?

https://doc.rust-lang.org/std/cmp/struct.Reverse.html#impl-Eq-for-Reverse<T>

1 Like