Type Definition npyz::OutFile[][src]

type OutFile<Row> = NpyWriter<Row, BufWriter<File>>;
👎 Deprecated since 0.5.0:

Doesn’t carry its weight. Use to_file_1d instead, or replicate the original behavior with Builder::new().default_dtype().begin_1d(std::io::BufWriter::new(std::fs::File::create(path)?))

Expand description

NpyWriter that writes an entire file.

Implementations

👎 Deprecated since 0.5.0:

Doesn’t carry its weight. Use to_file_1d instead, or replicate the original behavior with Builder::new().default_dtype().begin_1d(std::io::BufWriter::new(std::fs::File::create(path)?))

Create a file, using the default format for the given type.

👎 Deprecated since 0.5.0:

use .finish() instead

Finish writing the file and close it. Alias for NpyWriter::finish.

If omitted, the file will be closed on drop automatically, ignoring any errors encountered during the process.