Struct objc_id::WeakId
[−]
[src]
pub struct WeakId<T> { // some fields omitted }
A pointer type for a weak reference to an Objective-C reference counted object.
Methods
impl<T> WeakId<T> where T: Message
[src]
fn new(obj: &ShareId<T>) -> WeakId<T>
Construct a new WeakId
referencing the given ShareId
.
fn load(&self) -> Option<ShareId<T>>
Load a ShareId
from the WeakId
if the object still exists.
Returns None
if the object has been deallocated.