Macro eztrace::trace [−][src]
macro_rules! trace { () => { ... }; ($($IT:expr),* $(,)*) => { ... }; (@line) => { ... }; (@fmt $($IT:expr),*) => { ... }; (@fmtcode $_:expr) => { ... }; (@stringify $HEAD:expr, $($IT:expr,)*) => { ... }; }
Prints out variables and their debug representation.
Non-Copy
types do what you would hope.
Examples
Basic usage:
let a = 3; let b = 4; let c = 5; trace!(a, b, c); // a, b, c: 3 4 5 trace!(a * a + b * b, c * c); // a * a + b * b, c * c: 25 25
To print just the file & line:
trace!(); // eztrace.rs:1