[][src]Function mininip::parse::parse_file

pub fn parse_file<T: AsRef<Path>>(
    path: T
) -> Result<HashMap<Identifier, Value>, ParseFileError>

Reads in an INI file and returns the parsed data

Parameters

path the path of the file to open

Return value

Ok(data) in case of success with data as a HashMap<Identifier, Value> linking each identifier to its associated value

Err(error) in case of failure with error as an error code for either an I/O error or a parsing error (see ParseFileError)