fn load_from_storefile<P>(filename: P) -> io::Result<Vec<Host>>
    where
        P: AsRef<Path>,
    {
        let file = File::open(filename)?;
        let reader = BufReader::new(&file);
        Ok(reader
            .lines()
            .map(|line| Host::from(line.expect("failed to read input file line!")))
            .collect())
    }
/// Loads the storefile contents into memory.
Loads the storefile contents into memory.
Loads the storefile contents into memory .
fn load_from_storefile<P>(filename: P) -> io::Result<Vec<Host>>
    where
        P: AsRef<Path>,
    {
        let file = File::open(filename)?;
        let reader = BufReader::new(&file);
        Ok(reader
            .lines()
            .map(|line| Host::from(line.expect("failed to read input file line!")))
            .collect())
    }
fn load_from_storefile < P > ( filename : P ) -> io :: Result < Vec < Host > > where P : AsRef < Path > , { let file = File :: open ( filename ) ? ; let reader = BufReader :: new ( & file ) ; Ok ( reader . lines ( ) . map ( | line | Host :: from ( line . expect ( " " ) ) ) . collect ( ) ) }
Loads the storefile contents into memory.
Loads the storefile contents into memory .
filename
P
filename
P