fn next_complete(&mut self) -> Result<bool, ParseError> {
        loop {
            if self.buf_pos.start == 0 {
                // first record -> buffer too small
                self.grow();
            } else {
                // not the first record -> buffer may be big enough
                self.make_room();
            }

            // fill up remaining buffer
            fill_buf(&mut self.buf_reader)?;

            if self.find() {
                return Ok(true);
            }
        }
    }
/// To be called when the end of the buffer is reached and `next_pos` does not find
/// the next record. Incomplete bytes will be moved to the start of the buffer.
/// If the record still doesn't fit in, the buffer will be enlarged.
/// After calling this function, the position will therefore always be 'complete'.
/// this function assumes that the buffer was fully searched
To be called when the end of the buffer is reached and `next_pos` does not find
the next record. Incomplete bytes will be moved to the start of the buffer.
If the record still doesn't fit in, the buffer will be enlarged.
After calling this function, the position will therefore always be 'complete'.
this function assumes that the buffer was fully searched
To be called when the end of the buffer is reached and ` next_pos ` does not find the next record . Incomplete bytes will be moved to the start of the buffer . If the record still doesn ' t fit in the buffer will be enlarged . After calling this function the position will therefore always be ' complete ' . this function assumes that the buffer was fully searched
fn next_complete(&mut self) -> Result<bool, ParseError> {
        loop {
            if self.buf_pos.start == 0 {
                // first record -> buffer too small
                self.grow();
            } else {
                // not the first record -> buffer may be big enough
                self.make_room();
            }
            // fill up remaining buffer
            fill_buf(&mut self.buf_reader)?;
            if self.find() {
                return Ok(true);
            }
        }
    }
fn next_complete ( & mut self ) -> Result < bool , ParseError > { loop { if self . buf_pos . start == 0 { // first record -> buffer too small self . grow ( ) ; } else { // not the first record -> buffer may be big enough self . make_room ( ) ; } // fill up remaining buffer fill_buf ( & mut self . buf_reader ) ? ; if self . find ( ) { return Ok ( true ) ; } } }
To be called when the end of the buffer is reached and `next_pos` does not find
the next record.
To be called when the end of the buffer is reached and ` next_pos ` does not find the next record .
&mut self