ShallowDebug

Derive Macro ShallowDebug 

Source
#[derive(ShallowDebug)]
Expand description

A derive macro that is able to implement Debug for any type, without requiring it’s inner types to also implement the Debug trait. In order to do this, the Debug impl that is generated is “shallow”, meaning it will only print the enum variant names, but not their internal values. You can also #[derive(ShallowDebug)] for structs and unions, but it will not print the field values. In general this is more useful for enums, since the variant can already tell you useful information.