jsonc_tools 0.0.1

jsonc_tools: Tools to deal with `jsonc` files. See, [JSON with Comments](https://code.visualstudio.com/docs/languages/json#_json-with-comments) and [jsonc](https://komkom.github.io/) (A Json like file format with comments). See, [User and Workspace Settings](https://code.visualstudio.com/docs/getstarted/settings) and [Settings - vscode](https://vscode.readthedocs.io/en/latest/getstarted/settings/) for example files.
Documentation
use std::{error::Error, fmt};

#[derive(Debug, Default, Clone, Hash, PartialEq, PartialOrd, Eq, Ord)]
pub struct ErrorGeneric {
    b: u32,
}

impl ErrorGeneric {
    pub fn new(b: u32) -> Self {
        Self {
            b,
        }
    }
}

impl fmt::Display for ErrorGeneric {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(
            f,
            "parser.ErrorGeneric: expected=(4 <= b <= 16), got b=({:?})",
            self.b
        )
    }
}

impl Error for ErrorGeneric {}

#[cfg(test)]
mod tests {
    #[test]
    fn it_works() {
        assert_eq!(2 + 2, 4);
    }

    use pretty_assertions::assert_eq;

    #[test]
    fn it_works_pretty_assertions() {
        assert_eq!(2 + 2, 4);
    }
}