Module smart_ptr

Module smart_ptr 

Source

Structs§

ArcPointsTo
For Arc<T>, the into_raw method gives shared access to the memory, and the reference count is not decreased, so the value will not be deallocated until we convert back to Arc<T> and drop it. See https://doc.rust-lang.org/src/alloc/sync.rs.html#1480.
BoxPointsTo
For Box<T>, the into_raw method gives you the ownership of the memory

Enums§

SmartPtrPointsTo

Functions§

arc_from_raw
arc_into_raw
arc_pointer_spec
box_from_raw
box_into_raw
box_pointer_spec