Struct npy::OutFile
[−]
[src]
pub struct OutFile<Row: NpyData> { /* fields omitted */ }
Serialize into a file one row at a time. To serialize an iterator, use the
to_file
function.
Methods
impl<Row: NpyData> OutFile<Row>
[src]
fn open<P: AsRef<Path>>(path: P) -> Result<Self>
Open a file
fn push(&mut self, row: &Row) -> Result<()>
Append a single NpyData
instance to the file
fn close(self) -> Result<()>
Finish writing the file by finalizing the header and closing the file.
If omitted, the file will be closed on drop automatically, but it will panic on error.