https://github.com/wcampbell0x2a/dbg_hex
display dbg result in hexadecimal {:#x?} format
https://github.com/wcampbell0x2a/dbg_hex
dbg macro rust
Last synced: 5 months ago
JSON representation
display dbg result in hexadecimal {:#x?} format
- Host: GitHub
- URL: https://github.com/wcampbell0x2a/dbg_hex
- Owner: wcampbell0x2a
- License: mit
- Created: 2021-02-05T23:28:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-01-20T02:01:59.000Z (6 months ago)
- Last Synced: 2025-02-01T22:12:37.308Z (5 months ago)
- Topics: dbg, macro, rust
- Language: Rust
- Homepage:
- Size: 17.6 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
dbg_hex
===========================[
](https://github.com/wcampbell0x2a/dbg_hex)
[](https://crates.io/crates/dbg_hex)
[](https://docs.rs/dbg_hex)
[](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
```