Debug-print everything!
If you - like me - frequently find yourself deep in a jungle of generic traits with
a sudden need to debug-print some data, this crate is for you.
The constant struggle of adding Debug
bounds everywhere only to remove
all of them (or at least the ones you can still find) as soon as you're done is over:
use Debuggable;
How it works
Sadly, this relies on specialization and thus only works on nightly (as of May 2019).
The Debuggable
trait is implemented for all types but specialized for types implementing
Debug
:
use Debuggable;
;
assert_eq!;
assert_eq!;
Simple!