pub fn from_reader<R>(reader: &mut R) -> Result<Self>
    where
        R: Read,
    {
        let mut data = String::default();
        reader.read_to_string(&mut data).context("Cannot read the config")?;
        serde_json5::from_str(&data).context("Cannot parse the config")
    }
/// Parse the config from a reader.
Parse the config from a reader.
Parse the config from a reader .
pub fn from_reader<R>(reader: &mut R) -> Result<Self>
    where
        R: Read,
    {
        let mut data = String::default();
        reader.read_to_string(&mut data).context("Cannot read the config")?;
        serde_json5::from_str(&data).context("Cannot parse the config")
    }
pub fn from_reader < R > ( reader : & mut R ) -> Result < Self > where R : Read , { let mut data = String :: default ( ) ; reader . read_to_string ( & mut data ) . context ( " " ) ? ; serde_json5 :: from_str ( & data ) . context ( " " ) }
Parse the config from a reader.
Parse the config from a reader .
reader
&mut R
reader
&mut R