fea-rs-ast 0.1.4

fontTools-like AST wrapper around fea-rs parser
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use thiserror::Error;

/// Errors that can occur in fea-rs-ast operations.
#[derive(Debug, Clone, Error)]
pub enum Error {
    /// Cannot convert Statement to target type
    #[error("Cannot convert Statement to target type")]
    CannotConvert,
    /// Cannot load source file
    #[error("Cannot load source file: {0}")]
    CannotLoadSourceFile(#[from] fea_rs::parse::SourceLoadError),
    /// Errors encountered during feature parsing
    #[error("Errors encountered during feature parsing: {0:?}")]
    FeatureParsing(fea_rs::DiagnosticSet),
}