Trait enso_flexer::prelude::logger::prelude::StrongRef[][src]

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

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

Associated Types

type WeakRef: WeakRef[src]

Expand description

Downgraded reference type.

Loading content...

Required methods

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

Expand description

Creates a new weak reference of this allocation.

Loading content...

Implementors

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

type WeakRef = Weak<T>

pub fn downgrade(&self) -> <Rc<T> as StrongRef>::WeakRef[src]

Loading content...