pub struct WeakRef<T: ObjectType>(_, _);
A weak reference to an object.
Create a new empty weak reference.
upgrade will always return
None until an object is set on it.
Set this weak reference to the given object.
Try to upgrade this weak reference to a strong reference.
If the stored object was already destroyed or no object was set in this weak reference then
None is returned.
Auto Trait Implementations§
Returns the argument unchanged.