binspect 0.1.1

Utilities to inspect the data layout of objects.
Documentation
  • Coverage
  • 66.67%
    4 out of 6 items documented4 out of 4 items with examples
  • Size
  • Source code size: 40.44 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.37 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • taskie/binspect
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • taskie

binspect

Test Latest version Documentation License

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.

Usage

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

Examples

See examples.md and its original source.

License

MIT or Apache-2.0