Skip to main content

arc_into_raw

Function arc_into_raw 

Source
pub exec fn arc_into_raw<T>(p: Arc<T>) -> ret : *const T
Expand description
with
->
perm: Tracked<ArcPointsTo<T>>,
ensures
ret == perm@.ptr(),
perm@.inv(),
perm@.value() == *p,

A wrapper around Arc::into_raw that returns a raw-pointer permission.

Arc’s value-only model does not retain allocation identity across raw-pointer round trips. An uninterpreted Arc::ptr() would identify distinct equal-valued allocations, so pointer identity is deliberately absent from these contracts.