draxl-validate 0.1.1

Structural validation for Draxl source files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fmt;

/// Validation error for Draxl bootstrap files.
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct ValidationError {
    pub message: String,
}

impl fmt::Display for ValidationError {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        f.write_str(&self.message)
    }
}

impl std::error::Error for ValidationError {}