#vec #small #collection #smallvec #size

mediumvec

Vector types optimized for space, including a 32-bit Vec

7 stable releases

Uses old Rust 2015

1.2.0 May 30, 2021
1.1.0 Nov 17, 2020
1.0.4 Mar 5, 2019
1.0.2 Mar 7, 2018
1.0.1 Mar 29, 2017

#995 in Data structures

Download history 19/week @ 2022-08-11 20/week @ 2022-08-18 19/week @ 2022-08-25 21/week @ 2022-09-01 20/week @ 2022-09-08 30/week @ 2022-09-15 9/week @ 2022-09-22 18/week @ 2022-09-29 24/week @ 2022-10-06 9/week @ 2022-10-13 6/week @ 2022-10-20 20/week @ 2022-10-27 32/week @ 2022-11-03 20/week @ 2022-11-10 13/week @ 2022-11-17 2/week @ 2022-11-24

70 downloads per month
Used in string32

MIT/Apache

17KB
321 lines

mediumvec

Vec32<T>, a version of Vec<T> that is indexed by u32 instead of usize, for a slight reduction in size on 64-bit platforms.


lib.rs:

A vector that is indexed by u32 instead of usize.

No runtime deps