fn consume_newline(&mut self) -> Result<()> {
        self.consume(b'\n')?;
        self.pos.line += 1;
        self.pos.column = 1;
        Ok(())
    }
/// consume a newline character
///
/// This should be the only function used for parsing newlines, because it adjusts the
/// internal position counter.
consume a newline character
This should be the only function used for parsing newlines, because it adjusts the
internal position counter.
consume a newline character This should be the only function used for parsing newlines because it adjusts the internal position counter .
fn consume_newline(&mut self) -> Result<()> {
        self.consume(b'\n')?;
        self.pos.line += 1;
        self.pos.column = 1;
        Ok(())
    }
fn consume_newline ( & mut self ) -> Result < ( ) > { self . consume ( b'\n' ) ? ; self . pos . line += 1 ; self . pos . column = 1 ; Ok ( ( ) ) }
consume a newline character
This should be the only function used for parsing newlines, because it adjusts the
internal position counter.
consume a newline character This should be the only function used for parsing newlines because it adjusts the internal position counter .
&mut self
&mut self