Macro medea::impl_debug_by_struct_name[][src]

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.

Example

struct Foo;

impl_debug_by_struct_name!(Foo);

assert_eq!(format!("{:?}", Foo), "Foo")