Crates.io | intarray |
lib.rs | intarray |
version | 0.1.0 |
source | src |
created_at | 2019-09-06 13:15:15.629099 |
updated_at | 2019-09-06 13:15:15.629099 |
description | memory efficient integer array |
homepage | |
repository | https://github.com/wtnb75/intarray |
max_upload_size | |
id | 162768 |
size | 60,912 |
Cargo.toml
[dependencies]
intarray = "0.1.0"
use intarray;
let mut v = intarray::IntArray::new(7, 999); // 7-bit unsigned integer, 999 entries
v.set(10, 20).unwrap(); // v[10] = 20
v.get(10).unwrap(); // get v[10]