Function mycelium_util::fmt::hex
source · pub fn hex<T: LowerHex>(value: T) -> DebugValue<FormatWith<T>>
Expand description
Format the provided value using its core::fmt::LowerHex
implementation.
§Examples
use mycelium_util::fmt;
use tracing::debug;
let n = 0xf00;
debug!(some_number = ?n); // will be formatted as "some_number=3840"
debug!(some_number = fmt::hex(n)); //will be formatted as "some_number=0xf00"