I need to write (to files) some Rust
Vecs (and probably some
ndarrays too) in their raw binary representation, because a Python client expects to be able to read them in using code roughly similar to this:
data_raw = open(fpath,'rb').read() data_array = struct.unpack_from('f' * ndata, data_raw)
Before re-inventing the wheel, I'd like to check whether this is a solved problem in the Rust ecosystem.
[If I do have to write this myself, do you have any hints?]