/// check whether this Reader has reached EOF
check whether this Reader has reached EOF
check whether this Reader has reached EOF
fn reach_eof(&mut self) -> Result<bool> {
		loop {
			self.data.clear();
			let head = self.reader.read_until(b'\n', &mut self.data)?;
			if head == 0 {return Ok(true);}
			// skip blank line, assume a valid line doesn't start with a space
			if !char::is_whitespace(self.data[0] as char) {break;}
		}
		Ok(false)
	}
fn reach_eof ( & mut self ) -> Result < bool > { loop { self . data . clear ( ) ; let head = self . reader . read_until ( b'\n' , & mut self . data ) ? ; if head == 0 { return Ok ( true ) ; } // skip blank line, assume a valid line doesn't start with a space if ! char :: is_whitespace ( self . data [ 0 ] as char ) { break ; } } Ok ( false ) }
check whether this Reader has reached EOF
check whether this Reader has reached EOF
&mut self