icedwright-semantics 0.0.1

The icedwright semantic tree: inference from recorded widget operations, stable node paths, hit testing, diffs and YAML
Documentation
//! The crate's error type.

/// YAML and path parse errors. Folded into `icedwright::Error` with `From`.
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
#[non_exhaustive]
pub enum Error {
    /// The YAML could not be read.
    #[error("YAML line {line}, column {column}: {message}")]
    Yaml {
        /// The line, from 1.
        line: usize,
        /// The column, from 1.
        column: usize,
        /// What was wrong.
        message: String,
    },
    /// A node path could not be read.
    #[error("invalid node path at byte {offset}: {message}\n{input}")]
    Path {
        /// The path.
        input: String,
        /// The byte offset of the problem.
        offset: usize,
        /// What was wrong.
        message: String,
    },
}