Struct objc::rc::WeakPtr[][src]

pub struct WeakPtr(_);

A pointer that weakly references an object, allowing to safely check whether it has been deallocated.

Methods

impl WeakPtr
[src]

Constructs a WeakPtr to the given object. Unsafe because the caller must ensure the given object pointer is valid.

Loads the object self points to, returning a StrongPtr. If the object has been deallocated, the returned pointer will be null.

Trait Implementations

impl Drop for WeakPtr
[src]

Executes the destructor for this type. Read more

impl Clone for WeakPtr
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for WeakPtr

impl !Sync for WeakPtr