pub fn parse_file(file_name: &str) -> Result<TomlWsssConfig> {
    let mut file = File::open(file_name)?;
    let mut contents = String::new();
    file.read_to_string(&mut contents)?;
    let toml_cfg: TomlWsssConfig = toml::from_str(&contents)?;
    Ok(toml_cfg)
  }
/// Parse a file to yield a partial config
Parse a file to yield a partial config
Parse a file to yield a partial config
pub fn parse_file(file_name: &str) -> Result<TomlWsssConfig> {
    let mut file = File::open(file_name)?;
    let mut contents = String::new();
    file.read_to_string(&mut contents)?;
    let toml_cfg: TomlWsssConfig = toml::from_str(&contents)?;
    Ok(toml_cfg)
  }
pub fn parse_file ( file_name : & str ) -> Result < TomlWsssConfig > { let mut file = File :: open ( file_name ) ? ; let mut contents = String :: new ( ) ; file . read_to_string ( & mut contents ) ? ; let toml_cfg : TomlWsssConfig = toml :: from_str ( & contents ) ? ; Ok ( toml_cfg ) }
Parse a file to yield a partial config
Parse a file to yield a partial config
file_name
&str
file_name
&str