Type Definition shared_vector::SharedVector

source ·
pub type SharedVector<T, A = Global> = RefCountedVector<T, DefaultRefCount, A>;
Expand description

A heap allocated, reference counted, immutable contiguous buffer containing elements of type T.

See RefCountedVector.

Trait Implementations§

source§

impl<T: Clone, A: Allocator + Clone> From<Vector<T, A>> for SharedVector<T, A>

source§

fn from(vector: Vector<T, A>) -> Self

Converts to this type from the input type.