Struct glib::subclass::ObjectImplWeakRef
source · pub struct ObjectImplWeakRef<T: ObjectSubclass>(_);
Expand description
Weak reference to an ObjectSubclass
reference.
Implementations§
source§impl<T: ObjectSubclass> ObjectImplWeakRef<T>
impl<T: ObjectSubclass> ObjectImplWeakRef<T>
sourcepub fn upgrade(&self) -> Option<ObjectImplRef<T>>
pub fn upgrade(&self) -> Option<ObjectImplRef<T>>
Upgrade to a strong reference, if possible.
This will return None
if the underlying object was freed in the meantime.