slimvec 0.3.6

Dynamic array with a smaller inline-size
Documentation

slimvec

crates.io | docs.rs | github

SlimVec is analogous to the Standard Library's Vec collection type, however it has a smaller inline-size; the inline data is a thin pointer like thin-vec.

SlimVec implements as much of the API surface of Vec as possible.

  SlimVec<T>            Allocation
+-------------+       +-------------+
| ptr: 0xabcd | ----> | length:   2 |
+-------------+       |-------------|
                      | capacity: 4 |
                      |=============|
                      | 0:        A |
                      |-------------|
                      | 1:        B |
                      |-------------|
                      | 2: <uninit> |
                      |-------------|
                      | 3: <uninit> |
                      +-------------+

Licensing

This library may be licensed under any of the following LICENSE-ZLIB, LICENSE-MIT, or LICENSE-APACHE2 at your option.