#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

Download history 22/week @ 2024-08-04 14/week @ 2024-08-11 11/week @ 2024-08-18 1/week @ 2024-08-25 3/week @ 2024-09-01 6/week @ 2024-09-08 1/week @ 2024-09-15 26/week @ 2024-09-22 8/week @ 2024-09-29 8/week @ 2024-10-06 17/week @ 2024-10-13 8/week @ 2024-10-20 2/week @ 2024-10-27 17/week @ 2024-11-03 44/week @ 2024-11-10 8/week @ 2024-11-17

71 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