3 ms·
> autogenerated output useful for debugging by programmers Nit: not necessarily autogenerated, we can implement Debug by hand. It's just that, as the name indi
by masklinn 6y ago
> autogenerated output useful for debugging by programmers
Nit: not necessarily autogenerated, we can implement Debug by hand. It's just that, as the name indicates, this is aimed at debugging output rather than the possibly-user-facing output of Display.
- kibwen 6y agoIndeed, though it's worth driving home that the salient difference between Debug and Display is that the former, unlike the latter, can be autogenerated via derive (well, okay, I've seen crates that add the ability to derive Display based on doc comments, which is pretty cool: https://github.com/yaahc/displaydoc https://github.com/yaahc/displaydoc ).