Macro inspect::inspect [] [src]

macro_rules! inspect {
    ($($a:expr),*) => { ... };
}

Logs the file, line number, and expressions along with their Show value.

Examples

fn main() {
    let a = 7u;
    inspect!(a, a + 4); //=> file.rs - X: a = 7, a + 4 = 11
}