#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 7/week @ 2024-07-01 4/week @ 2024-07-08 17/week @ 2024-07-15 14/week @ 2024-07-22 47/week @ 2024-07-29 15/week @ 2024-08-05 14/week @ 2024-08-12 10/week @ 2024-08-19 3/week @ 2024-09-02 7/week @ 2024-09-09 28/week @ 2024-09-23 7/week @ 2024-09-30 7/week @ 2024-10-07 19/week @ 2024-10-14

61 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