pub fn from_file<T: AsRef<Path>>(path: T) -> Result<Self, IoError> {
        let file_str: String = read_to_string(path)?;
        toml::from_str(&file_str)
            .map_err(|err| IoError::new(ErrorKind::InvalidData, format!("{}", err)))
    }
// read and parse the .toml file
read and parse the .toml file
read and parse the . toml file
pub fn from_file<T: AsRef<Path>>(path: T) -> Result<Self, IoError> {
        let file_str: String = read_to_string(path)?;
        toml::from_str(&file_str)
            .map_err(|err| IoError::new(ErrorKind::InvalidData, format!("{}", err)))
    }
pub fn from_file < T : AsRef < Path > > ( path : T ) -> Result < Self , IoError > { let file_str : String = read_to_string ( path ) ? ; toml :: from_str ( & file_str ) . map_err ( | err | IoError :: new ( ErrorKind :: InvalidData , format ! ( " " err ) ) ) }
read and parse the .toml file
read and parse the . toml file
path
T
path
T