pub trait NDFileWriter: Send + Sync {
// Required methods
fn open_file(
&mut self,
path: &Path,
mode: NDFileMode,
array: &NDArray,
) -> ADResult<()>;
fn write_file(&mut self, array: &NDArray) -> ADResult<()>;
fn read_file(&mut self) -> ADResult<NDArray>;
fn close_file(&mut self) -> ADResult<()>;
// Provided method
fn supports_multiple_arrays(&self) -> bool { ... }
}Expand description
Trait for file format writers.