Why do I have to derive(Debug, Hash, PartialEq, Eq, Clone, Copy) when using the newtype pattern in @rustlang ?
Also, how about `let age = Years(5) + 1`;
https://doc.rust-lang.org/rust-by-example/generics/new_types.html …
That would be useful but is something different. We may eventually directly support that
-
-
How about e.g. 'type Year = new u32;' for this?!
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.