Skip to main content

Module vec

Module vec 

Source
Expand description

Contiguous vector that lives on the stack and spills to the heap.

Provides SmallVec — stores up to N elements in a [MaybeUninit<T>; N] stack array and transparently migrates to a std::vec::Vec when full. Because it Derefs to [T], all standard slice methods are available without conversion.

AnyVec is a slice-view trait implemented by SmallVec, Vec, slices ([T]), and arrays ([T; N]) to enable generic comparison and extension helpers.

Structs§

SmallVec
A structure representing SmallVec.
SmallVecIntoIter
A structure representing SmallVecIntoIter.

Traits§

AnyVec
A trait generalizing any vector-like contiguous collection.

Unions§

VecData
A constant parameter.