wcampbell0x2a / dbg_hex

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dbg_hex

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

About

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

License:MIT License


Languages

Language:Rust 100.0%