Macro binspect::binspect[][src]

macro_rules! binspect {
    ($v: expr) => { ... };
    ($v: expr, $len: expr) => { ... };
}
Expand description

Prints the memory address and the hex representation of an object to stdout.

Examples

let s = "ABC";
binspect!(s);
unsafe { binspect!(*s, s.len()) };

Safety

A correct byte length must be specified if the value is !Sized.