2 ms·
I strongly recommend just writing a #[derive] line for every user defined type you make. Start off with Debug in there, and you'll find often you already know s
by tialaramex 4y ago
I strongly recommend just writing a #[derive] line for every user defined type you make. Start off with Debug in there, and you'll find often you already know some other traits that'll be trivially derived for this type, Clone, Default, stuff like that.
- epage 4y agoGenerally I do. My comment isn't about whether my own types are `Debug` but others on top of several other problems.