Macro debugit::debugit

source ·
macro_rules! debugit {
    ($value:expr) => { ... };
}
Expand description

Formats the given argument using its Debug trait definition and returns the core::fmt::Arguments containing its Debug output, iff the argument’s type implements the Debug trait.

If it does not implement the Debug trait, then the type’s name is printed instead.

Examples

#[macro_use] extern crate debugit;

println!("{}", debugit!(my_struct));