office_oxide 0.1.1

The fastest Office document processing library — DOCX, XLSX, PPTX, DOC, XLS, PPT
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use thiserror::Error;

/// Errors specific to XLSX processing.
#[derive(Debug, Error)]
pub enum XlsxError {
    /// Error from the underlying OPC/XML layer.
    #[error(transparent)]
    Core(#[from] crate::core::Error),
    /// The workbook part was not found.
    #[error("missing workbook")]
    MissingWorkbook,
    /// A cell reference string could not be parsed.
    #[error("invalid cell reference: {0}")]
    InvalidCellRef(String),
}

/// Convenience alias for `Result<T, XlsxError>`.
pub type Result<T> = std::result::Result<T, XlsxError>;