/// Reads an integer from the input.
Reads an integer from the input.
Reads an integer from the input .
fn read_integer(&mut self, first: char) -> Result<i64> {
        let mut s = String::new();
        s.push(first);
        loop {
            match self.input.peek() {
                Some(&c) if !is_delimiter(c) => {
                    self.next();
                    s.push(c)
                },
                _ => break,
            }
        }
        i64::from_str_radix(&s, 10).map_err(
            |err| self.err(
                ErrorKind::MalformedToken,
                format!("cannot parse {} as integer: {}", s, err),
            )
        )
    }
fn read_integer ( & mut self , first : char ) -> Result < i64 > { let mut s = String :: new ( ) ; s . push ( first ) ; loop { match self . input . peek ( ) { Some ( & c ) if ! is_delimiter ( c ) => { self . next ( ) ; s . push ( c ) } , _ => break , } } i64 :: from_str_radix ( & s , 10 ) . map_err ( | err | self . err ( ErrorKind :: MalformedToken , format ! ( " " s err ) , ) ) }
Reads an integer from the input.
Reads an integer from the input .
&mut self
first
char