#dbg #macro #format #output

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

#13 in #dbg

Download history 72/week @ 2024-12-10 3/week @ 2024-12-17 3/week @ 2025-01-07 5/week @ 2025-01-14 432/week @ 2025-01-28 287/week @ 2025-02-04 16/week @ 2025-02-11 21/week @ 2025-02-18 25/week @ 2025-02-25 13/week @ 2025-03-04 17/week @ 2025-03-11 655/week @ 2025-03-18 10/week @ 2025-03-25

699 downloads per month
Used in 2 crates

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