fn parse<'a>(&mut self, src: &'a str) -> Result<(), ParsingErrorLine> {
        // The current line number.
        let mut line_num = 0;
        // Parse line-by-line.
        for line in src.lines() {
            self.parse_line(line).map_err(|err| ParsingErrorLine { err, line_num })?;
            line_num += 1;
        }

        // Flush the last state.
        self.flush().map_err(|err| ParsingErrorLine { err, line_num })
    }
/// Parse `src` and update state accordingly.
Parse `src` and update state accordingly.
Parse ` src ` and update state accordingly .
fn parse<'a>(&mut self, src: &'a str) -> Result<(), ParsingErrorLine> {
        // The current line number.
        let mut line_num = 0;
        // Parse line-by-line.
        for line in src.lines() {
            self.parse_line(line).map_err(|err| ParsingErrorLine { err, line_num })?;
            line_num += 1;
        }
        // Flush the last state.
        self.flush().map_err(|err| ParsingErrorLine { err, line_num })
    }
fn parse < ' a > ( & mut self , src : & ' a str ) -> Result < ( ) , ParsingErrorLine > { // The current line number. let mut line_num = 0 ; // Parse line-by-line. for line in src . lines ( ) { self . parse_line ( line ) . map_err ( | err | ParsingErrorLine { err , line_num } ) ? ; line_num += 1 ; } // Flush the last state. self . flush ( ) . map_err ( | err | ParsingErrorLine { err , line_num } ) }
Parse `src` and update state accordingly.
Parse ` src ` and update state accordingly .
&mut self
src
&'a str
&mut self
src
&'a str