onevec

Crates.ioonevec
lib.rsonevec
version0.1.0
sourcesrc
created_at2018-08-06 18:47:05.820514
updated_at2018-08-06 18:47:05.820514
descriptionOne-based indexed Vec wrapper
homepage
repositoryhttps://gitlab.com/LeshaInc/onevec
max_upload_size
id77788
size21,937
(LeshaInc)

documentation

README

OneVec

A simple Vec<T> wrapper with one-based indices allowing for memory layout optimization, e.g. Option<NonZeroUsize> is the same size as usize (8 or 4 bytes on most platforms), while size of Option<usize> is two times bigger than usize (due to alignment).

Commit count: 2

cargo fmt