Struct glib::subclass::ObjectImplWeakRef
source · [−]pub struct ObjectImplWeakRef<T: ObjectSubclass>(_);
Expand description
Weak reference to an ObjectSubclass
reference.
Implementations
sourceimpl<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.
Trait Implementations
sourceimpl<T: ObjectSubclass> Clone for ObjectImplWeakRef<T>
impl<T: ObjectSubclass> Clone for ObjectImplWeakRef<T>
sourceimpl<T: ObjectSubclass> Debug for ObjectImplWeakRef<T>
impl<T: ObjectSubclass> Debug for ObjectImplWeakRef<T>
sourceimpl<T: ObjectSubclass> Upgrade for ObjectImplWeakRef<T>
impl<T: ObjectSubclass> Upgrade for ObjectImplWeakRef<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for ObjectImplWeakRef<T> where
<T as ObjectSubclass>::Type: RefUnwindSafe,
impl<T> Send for ObjectImplWeakRef<T> where
<T as ObjectSubclass>::Type: Send + Sync,
impl<T> Sync for ObjectImplWeakRef<T> where
<T as ObjectSubclass>::Type: Sync,
impl<T> Unpin for ObjectImplWeakRef<T>
impl<T> UnwindSafe for ObjectImplWeakRef<T> where
<T as ObjectSubclass>::Type: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more