# binspect
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](https://doc.rust-lang.org/stable/nomicon/data.html) in detail.
## Usage
```rust
use binspect::binspect;
let s = "ABC";
binspect!(s);
unsafe { binspect!(*s, s.len()) };
```
An example of output (depends on compilation and runtime environments):
```text
-----+ 0x7ffce3c8f7a0: &str = s
0000 | 41 42 43
```
## Examples
See [example.md](examples.md) and [its original source](examples/all.rs).
## License
MIT or Apache-2.0