Crates.io | vecfile |
lib.rs | vecfile |
version | 0.3.0 |
source | src |
created_at | 2019-10-08 16:00:25.635238 |
updated_at | 2019-10-14 15:28:05.042748 |
description | A Vec-type collection that sits in a file vs in memory |
homepage | |
repository | https://github.com/bilowik/vecfile |
max_upload_size | |
id | 170818 |
size | 43,327 |
A Vec-type collection that sits in a file vs in memory. Has many of the same operations as Vec, and has some optional protections against Read/Write issues with the underlying file via 'shadows.' Can be iterated over, can be easily cloned, and converted to and from Vec.
use vec_file::*;
fn main() {
let mut vf = VecFile::new();
vf.push(&10u8);
vf.push(&210u8);
assert_eq!(vf.pop(), 210);
}
Currently in early development stages, use with caution.