Function alloc::sync::data_offset

source ·
unsafe fn data_offset<T: ?Sized>(ptr: *const T) -> usize
Expand description

Get 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.