intarray

Crates.iointarray
lib.rsintarray
version0.1.0
sourcesrc
created_at2019-09-06 13:15:15.629099
updated_at2019-09-06 13:15:15.629099
descriptionmemory efficient integer array
homepage
repositoryhttps://github.com/wtnb75/intarray
max_upload_size
id162768
size60,912
Watanabe Takashi (wtnb75)

documentation

README

Memory Efficient Integer Array

Usage

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]
Commit count: 8

cargo fmt