#hex #format #display #dbg #output #macro

dbg_hex

display dbg result in hexadecimal {:#x?} format

3 unstable releases

0.2.0 Jan 20, 2024
0.1.1 Aug 8, 2021
0.1.0 Feb 5, 2021

#6 in #dbg

45 downloads per month
Used in kfn-rs

MIT license

4KB

dbg_hex

github crates.io docs.rs build status

Display dbg result in hexadecimal {:#x?} format.

usage

Replace dbg!() with dbg_hex!()

example

use dbg_hex::dbg_hex;
dbg_hex!(0x16 + 0x16);

output

[src/lib.rs:38] 0x16 + 0x16 = 0x2c

No runtime deps