macro_rules! impl_debug_by_struct_name {
($mock:ty) => { ... };
}
Generates Debug
implementation for a provided structure with name of
this structure.
In debug print of this structure will be printed just a name of the provided
structure.
struct Foo;
impl_debug_by_struct_name!(Foo);
assert_eq!(format!("{:?}", Foo), "Foo")