pub trait PointerFamily {
    type Pointer<T: 'static>: Deref<Target = T> + Clone;
}
Expand description

Abstraction over smart pointers with 'static interiors.

Used so to make the indexical data structures generic with respect to choice of Rc or Arc (or your own clonable smart pointer!).

Required Associated Types§

source

type Pointer<T: 'static>: Deref<Target = T> + Clone

Pointer type for a given family.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl PointerFamily for ArcFamily

§

type Pointer<T: 'static> = Arc<T>

source§

impl PointerFamily for RcFamily

§

type Pointer<T: 'static> = Rc<T>

source§

impl<'a> PointerFamily for RefFamily<'a>

§

type Pointer<T: 'static> = &'a T