Struct glib::subclass::object_impl_ref::ObjectImplWeakRef
source · pub struct ObjectImplWeakRef<T: ObjectSubclass>(WeakRef<T::Type>);
Expand description
Weak reference to an ObjectSubclass
reference.
Tuple Fields§
§0: WeakRef<T::Type>
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.
Trait Implementations§
source§impl<T: ObjectSubclass> Clone for ObjectImplWeakRef<T>
impl<T: ObjectSubclass> Clone for ObjectImplWeakRef<T>
source§impl<T: ObjectSubclass> Debug for ObjectImplWeakRef<T>
impl<T: ObjectSubclass> Debug for ObjectImplWeakRef<T>
source§impl<T: ObjectSubclass> Upgrade for ObjectImplWeakRef<T>
impl<T: ObjectSubclass> Upgrade for ObjectImplWeakRef<T>
impl<T: ObjectSubclass + Send + Sync> Send for ObjectImplWeakRef<T>
impl<T: ObjectSubclass + Send + Sync> Sync for ObjectImplWeakRef<T>
Auto Trait Implementations§
impl<T> Freeze for ObjectImplWeakRef<T>
impl<T> RefUnwindSafe for ObjectImplWeakRef<T>
impl<T> Unpin for ObjectImplWeakRef<T>
impl<T> UnwindSafe for ObjectImplWeakRef<T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)