Loads the object self points to, returning a `StrongPtr`. If the object has been deallocated, the returned pointer will be null.
(&self)
| 24 | /// Loads the object self points to, returning a `StrongPtr`. |
| 25 | /// If the object has been deallocated, the returned pointer will be null. |
| 26 | pub fn load(&self) -> StrongPtr { |
| 27 | unsafe { |
| 28 | let ptr = runtime::objc_loadWeakRetained(self.0.get()); |
| 29 | StrongPtr::new(ptr) |
| 30 | } |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | impl Drop for WeakPtr { |