Expand description
Returns the metadata component of a pointer.
Values of type *mut T
, &T
, or &mut T
can be passed directly to this function as they
implicitly coerce to *const T
.
Example
use ptr_meta::metadata;
assert_eq!(metadata("foo"), 3_usize);