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::hash::Hash;

use super::ErrorGeneric;

// #[derive(Debug, Default, Clone, Hash, PartialEq, PartialOrd, Eq, Ord)]
#[derive(Clone, Hash, PartialEq, PartialOrd, Eq, Ord)]
pub struct Parser {}

impl Parser {
    pub fn new() -> Result<Self, ErrorGeneric> {
        Ok(Self {})
    }
}

impl std::default::Default for Parser {
    fn default() -> Self {
        Self {}
    }
}

impl std::fmt::Debug for Parser {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        let val = 10;
        write!(f, "Parser=[ val={:?} ]", val,)
    }
}

impl std::fmt::Display for Parser {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        let val = 10;
        write!(f, "Parser=[ val={} ]", val)
    }
}

#[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);
    }
}