small_vec 0.1.2

vector optimized for small buffers
Documentation
  • Coverage
  • 30%
    3 out of 10 items documented0 out of 7 items with examples
  • Size
  • Source code size: 8.76 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.39 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 10s Average build duration of successful builds.
  • all releases: 10s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • m-rinaldi/small_vec
    2 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • m-rinaldi

small_vec

A dynamic array or vector supporting small buffer optimization.

License: MIT Build Status


SmallVec<T, N> is, in essence, just an enum with two variants:

  • LocalBuf: a buffer allocated locally inside the SmallVec itself.
  • RemoteBuf: a Vec<T>, i.e., a remote buffer allocated on the heap.

The capacity of the local buffer is specified at compile time as a constant generic argument to SmallVec thanks to const generics.