pub(crate) fn next_int(&mut self) -> Result<u64, ParseError> {
        use atoi::atoi;

        const MSG: &str = "protocol error; invalid number";

        match self.next()? {
            // An integer frame type is already stored as an integer.
            Frame::Integer(v) => Ok(v),
            // Simple and bulk frames must be parsed as integers. If the parsing
            // fails, an error is returned.
            Frame::Simple(data) => atoi::<u64>(data.as_bytes()).ok_or_else(|| MSG.into()),
            Frame::Bulk(data) => atoi::<u64>(&data).ok_or_else(|| MSG.into()),
            frame => Err(format!("protocol error; expected int frame but got {:?}", frame).into()),
        }
    }
/// Return the next entry as an integer.
///
/// This includes `Simple`, `Bulk`, and `Integer` frame types. `Simple` and
/// `Bulk` frame types are parsed.
///
/// If the next entry cannot be represented as an integer, then an error is
/// returned.
Return the next entry as an integer.

If the next entry cannot be represented as an integer, then an error is
returned.
Return the next entry as an integer . If the next entry cannot be represented as an integer then an error is returned .
pub(crate) fn next_int(&mut self) -> Result<u64, ParseError> {
        use atoi::atoi;
        const MSG: &str = "protocol error; invalid number";
        match self.next()? {
            // An integer frame type is already stored as an integer.
            Frame::Integer(v) => Ok(v),
            // Simple and bulk frames must be parsed as integers. If the parsing
            // fails, an error is returned.
            Frame::Simple(data) => atoi::<u64>(data.as_bytes()).ok_or_else(|| MSG.into()),
            Frame::Bulk(data) => atoi::<u64>(&data).ok_or_else(|| MSG.into()),
            frame => Err(format!("protocol error; expected int frame but got {:?}", frame).into()),
        }
    }
pub ( crate ) fn next_int ( & mut self ) -> Result < u64 , ParseError > { use atoi :: atoi ; const MSG : & str = " " ; match self . next ( ) ? { // An integer frame type is already stored as an integer. Frame :: Integer ( v ) => Ok ( v ) , // Simple and bulk frames must be parsed as integers. If the parsing // fails, an error is returned. Frame :: Simple ( data ) => atoi :: < u64 > ( data . as_bytes ( ) ) . ok_or_else ( | | MSG . into ( ) ) , Frame :: Bulk ( data ) => atoi :: < u64 > ( & data ) . ok_or_else ( | | MSG . into ( ) ) , frame => Err ( format ! ( " " frame ) . into ( ) ) , } }
Return the next entry as an integer.
Return the next entry as an integer .
&mut self