@rustlang If a type (enum) is #[repr(i32)] then #[derive(Eq)] and #[derive(Hash)] should just work, right?
Ah yes, so Eq requires PartialEq. You can derive it as well, so should be easy to fix!
-
-
That works. Thanks. A lot of text for just telling that two parameters are both i32 but not the same. The enum trick feels wrong.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.