Skip to main content

conspire/io/
mod.rs

1//! Input/output library.
2
3#[cfg(feature = "netcdf")]
4mod netcdf;
5mod npy;
6mod zip;
7
8use std::path::Path;
9
10#[cfg(feature = "netcdf")]
11pub use netcdf::{DefineVariable, GetVariable, NetCDF, PutVariable};
12pub use npy::{Npy, NpyType};
13pub use zip::{Zip, ZipEntry};
14
15pub trait Write<P>
16where
17    P: AsRef<Path>,
18{
19    type Error;
20    fn write(&self, path: P) -> Result<(), Self::Error>;
21}