Skip to main content

Module smart_ptr

Module smart_ptr 

Source

Structs§

ArcPointsTo
Shared access to an Arc allocation. TODO: This legacy model does not distinguish read access from ownership; its tokens can be reconstructed and do not enforce one-time Arc recovery.
BoxPointsTo
For Box<T>, the into_raw method gives you the ownership of the memory
BoxPointsToRef
A permission that is equivalent to &BoxPointsTo<T>.

Traits§

PtrPointsToTrait
A verification-only trait that abstracts the permission that tracks both the pointer and the value it points to.

Functions§

arc_from_raw⚠
Reconstructs an Arc using the legacy shared-access permission model.
arc_into_raw
A wrapper around Arc::into_raw that returns a raw-pointer permission.
box_from_raw⚠
box_into_raw
A wrapper around Box::into_raw that also returns the permission to access the memory.