On the left: Someone browsing through a huge book captioned "Implementing equality in other languages". On the right: A tiny book labelled with the Rust code `#[derive(PartialEq, Eq)]` captioned "Implementing Eq in Rust".
you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 2 years ago

What if youre working with library types? The problem is not not you compare a bunch of fields but that the implementation on those members is most likely bad.

  • source
  • parent