Trait enso_prelude::WeakRef[][src]

pub trait WeakRef: CloneRef {
    type StrongRef: StrongRef<WeakRef = Self>;
    fn upgrade(&self) -> Option<Self::StrongRef>;
}
Expand description

Abstraction for a weak reference like Weak or newtypes over it.

Associated Types

Upgraded reference type.

Required methods

Attempts to upgrade the weak referenc to a strong one, delaying dropping of the inner value if successful.

Implementors