Trait enso_prelude::StrongRef[][src]

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

Abstraction for a strong reference like Rc or newtypes over it.

Associated Types

type WeakRef: WeakRef<StrongRef = Self>[src]

Downgraded reference type.

Required methods

fn downgrade(&self) -> Self::WeakRef[src]

Creates a new weak reference of this allocation.

Implementors

impl<T: ?Sized> StrongRef for Rc<T>[src]

type WeakRef = Weak<T>

fn downgrade(&self) -> Self::WeakRef[src]