Crates.io | binspect |
lib.rs | binspect |
version | 0.1.1 |
source | src |
created_at | 2021-06-10 09:15:51.071735 |
updated_at | 2021-06-13 13:41:45.049451 |
description | Utilities to inspect the data layout of objects. |
homepage | |
repository | https://github.com/taskie/binspect |
max_upload_size | |
id | 408510 |
size | 40,970 |
Rust utilities to inspect the data layout of objects.
This library is for debugging only because data layout of Rust is not be stabilized. Please read Data Layout - The Rustonomicon in detail.
use binspect::binspect;
let s = "ABC";
binspect!(s);
binspect!(*s);
An example of output (depends on compilation and runtime environments):
-----+ 0x7ffce3c8f7a0: &str = s
0000 | 49 03 b4 2f 2c 56 00 00 : 03 00 00 00 00 00 00 00
-----+ 0x562c2fb40349: str = *s
0000 | 41 42 43
See examples.md and its original source.
MIT or Apache-2.0