[][src]Trait glib::clone::Upgrade

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.

Associated Types

type Strong

Strong reference type.

Loading content...

Required methods

fn upgrade(&self) -> Option<Self::Strong>

Try upgrading a weak reference to a strong reference.

Loading content...

Implementations on Foreign Types

impl<T> Upgrade for Weak<T>[src]

type Strong = Arc<T>

impl<T> Upgrade for Weak<T>[src]

type Strong = Rc<T>

Loading content...

Implementors

impl<T: Downgrade + ObjectType> Upgrade for WeakRef<T>[src]

type Strong = T

Loading content...