unsafe fn data_offset<T: ?Sized>(ptr: *const T) -> isize {
    // Align the unsized value to the end of the ArcInner.
    // Because RcBox is repr(C), it will always be the last field in memory.
    // SAFETY: since the only unsized types possible are slices, trait objects,
    // and extern types, the input safety requirement is currently enough to
    // satisfy the requirements of align_of_val_raw; this is an implementation
    // detail of the language that may not be relied upon outside of std.
    data_offset_align(align_of_val_raw(ptr))
}
/// Get the offset within an `StrongArcInner` 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.
Get the offset within an `StrongArcInner` for the payload behind a pointer.
Get the offset within an ` StrongArcInner ` for the payload behind a pointer .
unsafe fn data_offset<T: ?Sized>(ptr: *const T) -> isize {
    // Align the unsized value to the end of the ArcInner.
    // Because RcBox is repr(C), it will always be the last field in memory.
    // SAFETY: since the only unsized types possible are slices, trait objects,
    // and extern types, the input safety requirement is currently enough to
    // satisfy the requirements of align_of_val_raw; this is an implementation
    // detail of the language that may not be relied upon outside of std.
    data_offset_align(align_of_val_raw(ptr))
}
unsafe fn data_offset < T : ? Sized > ( ptr : * const T ) -> isize { // Align the unsized value to the end of the ArcInner. // Because RcBox is repr(C), it will always be the last field in memory. // SAFETY: since the only unsized types possible are slices, trait objects, // and extern types, the input safety requirement is currently enough to // satisfy the requirements of align_of_val_raw; this is an implementation // detail of the language that may not be relied upon outside of std. data_offset_align ( align_of_val_raw ( ptr ) ) }
Get the offset within an `StrongArcInner` for the payload behind a pointer.
Get the offset within an ` StrongArcInner ` for the payload behind a pointer .
ptr
*const T
ptr
*const T
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.
The pointer must point to ( and have valid metadata for ) a previously valid instance of T but the T is allowed to be dropped .