A pointer that weakly references an object, allowing to safely check whether it has been deallocated.
| 11 | /// A pointer that weakly references an object, allowing to safely check |
| 12 | /// whether it has been deallocated. |
| 13 | pub struct WeakPtr(Box<UnsafeCell<*mut Object>>); |
| 14 | |
| 15 | impl WeakPtr { |
| 16 | /// Constructs a `WeakPtr` to the given object. |