Function npy::to_file [] [src]

pub fn to_file<'a, S, T, P>(filename: P, data: T) -> Result<()> where
    P: AsRef<Path>,
    S: NpyRecord + 'a,
    T: IntoIterator<Item = S>, 

Serialize an iterator over a struct to a NPY file

A single-statement alternative to saving row by row using the OutFile.