tramlines-core 0.2.2

The format-neutral core of tramlines: the grammar a schema is written in, its shapes, formats and frontmatter rules, and the findings of a check.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! The engine's one error type: a grammar the engine carries that does not
//! read, which is a defect of the build, never of a user's input.

/// Convenience alias for results from this crate.
pub type Result<T> = std::result::Result<T, Error>;

// sokf:begin error
/// Errors produced by this crate.
#[derive(Debug, thiserror::Error)]
pub enum Error {
    /// A broken invariant.
    #[error("internal: {0}")]
    Internal(String),
}
// sokf:end error