Function to_file

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

Serialize an iterator over a struct to a NPY file

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