Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wcampbell0x2a/dbg_hex

display dbg result in hexadecimal {:#x?} format
https://github.com/wcampbell0x2a/dbg_hex

dbg macro rust

Last synced: 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

dbg_hex
===========================

[github](https://github.com/wcampbell0x2a/dbg_hex)
[crates.io](https://crates.io/crates/dbg_hex)
[docs.rs](https://docs.rs/dbg_hex)
[build status](https://github.com/wcampbell0x2a/dbg_hex/actions?query=branch%3Amaster)

Display dbg result in hexadecimal `{:#x?}` format.

# usage
Replace `dbg!()` with `dbg_hex!()`

# example
```rust, no_run
use dbg_hex::dbg_hex;
dbg_hex!(0x16 + 0x16);
```

output
```text
[src/lib.rs:38] 0x16 + 0x16 = 0x2c
```