pub fn from_str(path: PathBuf, string: &str) -> Result<Input, Error> {
        let config = parse_toml(string).map_err(|err| { Error::TOML(Box::new(err)) })?;
        validate(&config)?;
        Ok(Input {
            path: path,
            config: config,
        })
    }
/// Read the `Input` from a TOML formatted string.
Read the `Input` from a TOML formatted string.
Read the ` Input ` from a TOML formatted string .
pub fn from_str(path: PathBuf, string: &str) -> Result<Input, Error> {
        let config = parse_toml(string).map_err(|err| { Error::TOML(Box::new(err)) })?;
        validate(&config)?;
        Ok(Input {
            path: path,
            config: config,
        })
    }
pub fn from_str ( path : PathBuf , string : & str ) -> Result < Input , Error > { let config = parse_toml ( string ) . map_err ( | err | { Error :: TOML ( Box :: new ( err ) ) } ) ? ; validate ( & config ) ? ; Ok ( Input { path : path , config : config , } ) }
Read the `Input` from a TOML formatted string.
Read the ` Input ` from a TOML formatted string .
path
PathBuf
string
&str