trace_macros::DEBUG_TRACE! [] [src]

macro_rules! DEBUG_TRACE {
    (type=>$tp:expr, sep=>$sep:expr, $msg:expr) => { ... };
    (type=>$tp:expr, sep=>$sep:expr, $($arg:expr),+) => { ... };
    (type=>$tp:expr, $msg:expr) => { ... };
    (type=>$tp:expr, $($arg:expr),+) => { ... };
    (type=>$tp:expr) => { ... };
    (sep=>$sep:expr, $($arg:expr),+) => { ... };
    ($msg:expr) => { ... };
    ($($arg:expr),+) => { ... };
    () => { ... };
}

Debug trace macro.

Prints with the following format: file!:line! - [type:] [Message]

Usage:

  • TRACE!(type=>[TYPE], sep=>[String], [arg1, arg2, ..., argN])
  • TRACE!(type=>[TYPE], [arg1, arg2, ..., argN])
  • TRACE!(sep=>[String], [arg1, arg2, ..., argN])
  • TRACE!([arg1, arg2, ..., argN])
  • TRACE!()

It is the same as TRACE! except that it prints with fmt::Debug trait.