Trait WeakRcb

Source
pub trait WeakRcb<T> {
    type Strong: Rcb<T>;

    // Required method
    fn upgrade(&self) -> Option<Self::Strong>;
}
Expand description

Trait for weak pointers to reference-counted boxes.

Required Associated Types§

Source

type Strong: Rcb<T>

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl<T> WeakRcb<T> for Weak<T>

Source§

type Strong = Rc<T>

Source§

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

Source§

impl<T> WeakRcb<T> for Weak<T>

Source§

type Strong = Arc<T>

Source§

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

Implementors§