jltsiren / simple-sds

Simple succinct data structures (in Rust)
MIT License
47 stars 8 forks source link

Simplify the writer structures #7

Closed jltsiren closed 3 years ago

jltsiren commented 3 years ago

Removed the Writer trait that made things more complicated than necessary. IntVectorWriter now passes its header as a vector of elements to the constructors and close method of RawVectorWriter. This approach can be generalized if more nested writers are needed.