| Crates.io | onevec |
| lib.rs | onevec |
| version | 0.1.0 |
| created_at | 2018-08-06 18:47:05.820514+00 |
| updated_at | 2018-08-06 18:47:05.820514+00 |
| description | One-based indexed Vec wrapper |
| homepage | |
| repository | https://gitlab.com/LeshaInc/onevec |
| max_upload_size | |
| id | 77788 |
| size | 21,937 |
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).