Module rustc_data_structures::small_vec [] [src]

🔬 This is a nightly-only experimental API. (rustc_private)

A vector type intended to be used for collecting from iterators onto the stack.

Space for up to N elements is provided on the stack. If more elements are collected, Vec is used to store the values on the heap. SmallVec is similar to AccumulateVec, but adds the ability to push elements.

The N above is determined by Array's implementor, by way of an associatated constant.

Structs

SmallVec [
Experimental
]