unsafe fn data_offset<T: ?Sized>(ptr: *const T) -> usize
Expand description
Gets the offset within an RcInner
for the payload behind a pointer.
ยงSafety
The pointer must point to (and have valid metadata for) a previously valid instance of T, but the T is allowed to be dropped.