paperforge-core 0.1.0

PDF-independent core types and abstractions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use thiserror::Error;

/// Result type for core operations.
pub type CoreResult<T> = Result<T, CoreError>;

/// Errors from core operations.
#[derive(Debug, Error)]
pub enum CoreError {
    #[error("invalid value: {0}")]
    InvalidValue(String),

    #[error("out of range: {0}")]
    OutOfRange(String),

    #[error("not implemented: {0}")]
    NotImplemented(String),
}