Module rc

Module rc 

Source
Expand description

This module contains the Rc smart point capable of shared ownership of memory in a IndexAllocator

Structs§

Rc
A smart pointer holding its value in an IndexAllocator and allowing shared ownership between multiple Rc.
Weak
A smart pointer to a value in an Rc which doesn’t hold the inner data. As the inner data can be dropped when no more Rc are holding it, a Weak reference can’t directly access it’s inner data and must be upgraded to an Rc with the Weak::upgrade method.