pub struct ObjectImplWeakRef<T>(_)
where
T: ObjectSubclass;
Expand description
Weak reference to an ObjectSubclass
reference.
Implementations§
§impl<T> ObjectImplWeakRef<T>where
T: ObjectSubclass,
impl<T> ObjectImplWeakRef<T>where T: ObjectSubclass,
pub 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§
§impl<T> Clone for ObjectImplWeakRef<T>where
T: ObjectSubclass,
impl<T> Clone for ObjectImplWeakRef<T>where T: ObjectSubclass,
§fn clone(&self) -> ObjectImplWeakRef<T>
fn clone(&self) -> ObjectImplWeakRef<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl<T> Debug for ObjectImplWeakRef<T>where
T: ObjectSubclass,
impl<T> Debug for ObjectImplWeakRef<T>where T: ObjectSubclass,
§impl<T> Upgrade for ObjectImplWeakRef<T>where
T: ObjectSubclass,
impl<T> Upgrade for ObjectImplWeakRef<T>where T: ObjectSubclass,
§type Strong = ObjectImplRef<T>
type Strong = ObjectImplRef<T>
Strong reference type.
impl<T> Send for ObjectImplWeakRef<T>where T: ObjectSubclass + Send + Sync,
impl<T> Sync for ObjectImplWeakRef<T>where T: ObjectSubclass + Send + Sync,
Auto Trait Implementations§
impl<T> RefUnwindSafe for ObjectImplWeakRef<T>where <T as ObjectSubclass>::Type: RefUnwindSafe,
impl<T> Unpin for ObjectImplWeakRef<T>
impl<T> UnwindSafe for ObjectImplWeakRef<T>where <T as ObjectSubclass>::Type: RefUnwindSafe,
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.