conspire/io/mod.rs
1//! File input and output.
2
3mod deflate;
4mod netcdf;
5mod npy;
6mod vtk;
7mod zip;
8
9use std::path::Path;
10
11pub use deflate::{adler32, deflate, inflate, zlib_decode, zlib_encode};
12pub use netcdf::{DefineVariable, GetVariable, NetCDF, NetCdfError, PutVariable};
13pub use npy::{Npy, NpyType};
14pub use vtk::{invalid, read, unsupported, write};
15pub use zip::{Zip, ZipEntry};
16
17pub trait Write<P>
18where
19 P: AsRef<Path>,
20{
21 type Error;
22 fn write(&self, path: P) -> Result<(), Self::Error>;
23}