pub fn lines(&self) -> io::Result<impl Iterator<Item=String>> {
        let lines = io::BufReader::new(File::open(&self.input_file)?)
            .lines()
            .take_while(|line| line.is_ok())
            .map(|line| line.unwrap());
        return Ok(lines);
    }
/// Will read lines from the input file while there is not I/O errors.
Will read lines from the input file while there is not I/O errors.
Will read lines from the input file while there is not I / O errors .
pub fn lines(&self) -> io::Result<impl Iterator<Item=String>> {
        let lines = io::BufReader::new(File::open(&self.input_file)?)
            .lines()
            .take_while(|line| line.is_ok())
            .map(|line| line.unwrap());
        return Ok(lines);
    }
pub fn lines ( & self ) -> io :: Result < impl Iterator < Item = String > > { let lines = io :: BufReader :: new ( File :: open ( & self . input_file ) ? ) . lines ( ) . take_while ( | line | line . is_ok ( ) ) . map ( | line | line . unwrap ( ) ) ; return Ok ( lines ) ; }
Will read lines from the input file while there is not I/O errors.
Will read lines from the input file while there is not I / O errors .
&self
&self