Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/wcampbell0x2a/dbg_hex
- Owner: wcampbell0x2a
- License: mit
- Created: 2021-02-05T23:28:50.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2024-01-20T18:10:41.000Z (11 months ago)
- Last Synced: 2024-08-09T18:53:56.891Z (5 months ago)
- Topics: dbg, macro, rust
- Language: Rust
- Homepage:
- Size: 16.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
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
```