partialdebug
Derive Debug for types where not all fields implement Debug.
This crate works on stable and with no_std
.
On nightly the unstable
feature can be used for specialization based trait detection and/or ..
formatting.
Placeholder with Type Info
use PartialDebug;
assert_eq!;
Placeholder with Custom Text
use PartialDebug;
assert_eq!;
Non Exhaustive
Only available on nightly after setting the unstable
feature.
Requires the debug_non_exhaustive
feature to be enabled in user code.
Only available for structs with named fields.
use PartialDebug;
assert_eq!;
Caveats
Trait detection for generic types requires specialization.
To enable specialization based trait detection use a nightly compiler and enable the unstable
feature.
use PartialDebug;
;
assert_eq!;
assert_eq!;