fn integer(&mut self, radix: u32) -> Result<u32, Error> {
      let start_location = self.location;
      let mut number = String::new();
      self.collect_digits(&mut number, radix)?;
      if number.is_empty() {
         return Err(self.error_at(start_location, ErrorKind::UnderscoresWithoutDigits));
      }
      u32::from_str_radix(&number, radix)
         .map_err(|_| self.error_at(start_location, ErrorKind::IntLiteralOutOfRange))
   }
/// Parses a 32-bit integer with the specified radix.
Parses a 32-bit integer with the specified radix.
Parses a 32 - bit integer with the specified radix .
fn integer(&mut self, radix: u32) -> Result<u32, Error> {
      let start_location = self.location;
      let mut number = String::new();
      self.collect_digits(&mut number, radix)?;
      if number.is_empty() {
         return Err(self.error_at(start_location, ErrorKind::UnderscoresWithoutDigits));
      }
      u32::from_str_radix(&number, radix)
         .map_err(|_| self.error_at(start_location, ErrorKind::IntLiteralOutOfRange))
   }
fn integer ( & mut self , radix : u32 ) -> Result < u32 , Error > { let start_location = self . location ; let mut number = String :: new ( ) ; self . collect_digits ( & mut number , radix ) ? ; if number . is_empty ( ) { return Err ( self . error_at ( start_location , ErrorKind :: UnderscoresWithoutDigits ) ) ; } u32 :: from_str_radix ( & number , radix ) . map_err ( | _ | self . error_at ( start_location , ErrorKind :: IntLiteralOutOfRange ) ) }
Parses a 32-bit integer with the specified radix.
Parses a 32 - bit integer with the specified radix .
&mut self
radix
u32