#file #vs #memory #collection #shadow #vec #sits

yanked vecfile

A Vec-type collection that sits in a file vs in memory

0.3.0 Oct 14, 2019
0.2.0 Oct 14, 2019
0.1.0 Oct 8, 2019

#18 in #vs

Custom license

42KB
733 lines

VecFile

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.

Example

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.

Dependencies

~2–10MB
~108K SLoC