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
[–] 6 points 2 years ago

Not for the built-in Eq derive macro. But you can write your own derive macros that do allow you to take options, yeah.

  • source
  • parent