Function data_offset

pub(in ::sync) unsafe fn data_offset<T: ?Sized>(ptr: *const T) -> usize

Gets the offset within an ArcInner 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.