#hex #display #format #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

#5 in #dbg

Download history 3/week @ 2023-12-22 1/week @ 2023-12-29 2/week @ 2024-01-05 5/week @ 2024-01-19 18/week @ 2024-02-09 34/week @ 2024-02-16 49/week @ 2024-02-23 16/week @ 2024-03-01 12/week @ 2024-03-08 12/week @ 2024-03-15 21/week @ 2024-03-22 63/week @ 2024-03-29 28/week @ 2024-04-05

125 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