macro_rules! dbg {
() => { ... };
($val:expr) => { ... };
($val:expr,) => { ... };
($($val:expr),+ $(,)?) => { ... };
}
Expand description
Macro that prints and returns the value of a given expression for quick and dirty debugging.
Works exactly like dbg!
in the standard library, replacing eprintln!
with heprintln!
.