If I use derive -- say for example:
#[derive(Hash, Eq, PartialEq, Ord, PartialOrd)]
...is there some way to see what it does behind the scenes?
More detail, only if you need it:
The reason I ask is that the example above works great to make very simple structs comparable and thus sortable, but I would need to write code manually for more complex structs. Especially with structs for which I might want to exclude several elements from the comparison. I have no clue what the prefix "Partial" could be hinting at, to mention another issue. So despite searching for guidelines, my efforts to roll my own are not going well. It would greatly help to see what the derive "decorator" (forgive my Pythonic thinking) is generating under the covers. As usual, thanks for any help!