to_debug
This crate exports the [ToDebug] trait, which is an alternative to
[ToString] that uses Debug instead of Display.
This can be useful for writing doctests, as it allows you to inspect the values of private fields:
let p = new;
// assert_eq!(p.name, "Joseph"); // This would fail since `name` is private.
assert_eq!;
License: MIT