fn load_records(file_name: PathBuf, verbose: bool) -> std::io::Result<Records> {
    let mut file = File::open(file_name)?;

    let mut buffer = String::new();
    file.read_to_string(&mut buffer)?;

    Ok(parse_records(buffer, verbose))
}
/// Loads the raw records from a file.
Loads the raw records from a file.
Loads the raw records from a file .
fn load_records(file_name: PathBuf, verbose: bool) -> std::io::Result<Records> {
    let mut file = File::open(file_name)?;
    let mut buffer = String::new();
    file.read_to_string(&mut buffer)?;
    Ok(parse_records(buffer, verbose))
}
fn load_records ( file_name : PathBuf , verbose : bool ) -> std :: io :: Result < Records > { let mut file = File :: open ( file_name ) ? ; let mut buffer = String :: new ( ) ; file . read_to_string ( & mut buffer ) ? ; Ok ( parse_records ( buffer , verbose ) ) }
Loads the raw records from a file.
Loads the raw records from a file .
file_name
PathBuf
verbose
bool