Struct npy::OutFile
[−]
[src]
pub struct OutFile<Row: Serializable> { /* fields omitted */ }
Serialize into a file one row at a time. To serialize an iterator, use the
to_file
function.
Methods
impl<Row: Serializable> OutFile<Row>
[src]
pub fn open<P: AsRef<Path>>(path: P) -> Result<Self>
[src]
Open a file
pub fn push(&mut self, row: &Row) -> Result<()>
[src]
Append a single row to the file
pub fn close(self) -> Result<()>
[src]
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.