Trait Upgrade
Other items inglib::clone
pub trait Upgrade where Self: Sized, { type Strong; fn upgrade(&self) -> Option<Self::Strong>; }
Trait for generalizing upgrading a weak reference to a strong reference.
type Strong
Strong reference type.
fn upgrade(&self) -> Option<Self::Strong>
Try upgrading a weak reference to a strong reference.
impl<T> Upgrade for PhantomData<T>
type Strong = PhantomData<T>
impl<T> Upgrade for Weak<T>
type Strong = Arc<T>
type Strong = Rc<T>
impl<T: Downgrade + ObjectType> Upgrade for WeakRef<T>