edikt-core 0.2.0

edikt core: value model, Feature capabilities, the expression language, and the Document/Convert seams.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//! Edit errors, shared across format modules.

/// A format-preserving edit failure (bad path, wrong type for the operation,
/// unsupported construct).
#[derive(Debug, Clone, PartialEq, Eq, thiserror::Error)]
#[error("{msg}")]
pub struct EditError {
    pub msg: String,
}

impl EditError {
    pub fn new(msg: impl Into<String>) -> EditError {
        EditError { msg: msg.into() }
    }
}