Function npyz::to_file

source ·
pub fn to_file<S, T, P>(filename: P, data: T) -> Result<()>
where P: AsRef<Path>, S: AutoSerialize, T: IntoIterator<Item = S>,
👎Deprecated since 0.5.0: renamed to to_file_1d
Expand description

Serialize an iterator over a struct to a NPY file.

This only saves a 1D array. To save an ND array, you must use the WriterBuilder API.