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
use thiserror::Error;

/// Errors specific to PPTX processing.
#[derive(Debug, Error)]
pub enum PptxError {
    /// Error from the underlying OPC/XML layer.
    #[error(transparent)]
    Core(#[from] crate::core::Error),
    /// The presentation part was not found.
    #[error("missing presentation")]
    MissingPresentation,
}

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