conspire 0.7.1

The Rust interface to conspire.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::io::netcdf::NetCDF;
use std::{ffi::NulError, path::Path};

impl TryFrom<&Path> for NetCDF {
    type Error = NulError;
    fn try_from(path: &Path) -> Result<Self, Self::Error> {
        let path = path
            .to_str()
            .expect("Might need a new error type to handle errors properly");
        let mut netcdf = Self::create(path)?;
        netcdf.global();
        Ok(netcdf)
    }
}