pub struct WeakRef<T: ObjectType>(_, _);
Expand description
A weak reference to an object.
Implementations
Trait Implementations
sourceimpl<T: ObjectType> Clone for WeakRef<T>
impl<T: ObjectType> Clone for WeakRef<T>
sourceimpl<T: Debug + ObjectType> Debug for WeakRef<T>
impl<T: Debug + ObjectType> Debug for WeakRef<T>
sourceimpl<T: ObjectType> Default for WeakRef<T>
impl<T: ObjectType> Default for WeakRef<T>
sourceimpl<T: ObjectType> Drop for WeakRef<T>
impl<T: ObjectType> Drop for WeakRef<T>
sourceimpl<T: ObjectType> From<WeakRef<T>> for SendWeakRef<T>
impl<T: ObjectType> From<WeakRef<T>> for SendWeakRef<T>
sourcefn from(v: WeakRef<T>) -> SendWeakRef<T>
fn from(v: WeakRef<T>) -> SendWeakRef<T>
Converts to this type from the input type.
sourceimpl<T: Downgrade + ObjectType> Upgrade for WeakRef<T>
impl<T: Downgrade + ObjectType> Upgrade for WeakRef<T>
impl<T: ObjectType + Send + Sync> Send for WeakRef<T>
impl<T: ObjectType + Sync> Sync for WeakRef<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for WeakRef<T> where
T: RefUnwindSafe,
impl<T> Unpin for WeakRef<T>
impl<T> UnwindSafe for WeakRef<T> where
T: 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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more