Trait enso_flexer::prelude::WeakRef[][src]

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

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

Associated Types

type StrongRef: StrongRef[src]

Expand description

Upgraded reference type.

Loading content...

Required methods

fn upgrade(&self) -> Option<Self::StrongRef>[src]

Expand description

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

Loading content...

Implementors

impl<T> WeakRef for Weak<T> where
    T: ?Sized
[src]

type StrongRef = Rc<T>

pub fn upgrade(&self) -> Option<<Weak<T> as WeakRef>::StrongRef>[src]

Loading content...