Skip to main content

trace

Function trace 

Source
pub fn trace<F: FnOnce() -> String>(scope: &str, message: F)
Expand description

Emit a trace message when tracing is on.

The message is built by a closure so that building it costs nothing while tracing is off, which is the normal case.

ยงArguments

  • scope - Where the message comes from, for example readable.decode
  • message - Builds the message text