Module rustc_data_structures::small_vec
[−]
[src]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
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 associated constant.
Structs
SmallVec |
[ Experimental ]
|