geddes 0.1.0

A Rust library for parsing XRD pattern files (xy, rasx, raw)
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use thiserror::Error;
use std::io;

#[derive(Error, Debug)]
pub enum GeddesError {
    #[error("IO error: {0}")]
    Io(#[from] io::Error),
    #[error("Zip error: {0}")]
    Zip(#[from] zip::result::ZipError),
    #[error("Parse error: {0}")]
    Parse(String),
    #[error("Unknown format")]
    UnknownFormat,
    #[error("File not found in archive: {0}")]
    FileNotFoundInArchive(String),
}