Function data_offset

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

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.