fn collect_digits(&mut self, output: &mut String, radix: u32) -> Result<(), Error> {
      let start_location = self.location;
      let mut had_digits = false;
      while Self::is_digit_or_underscore(self.get(), radix) {
         if self.get() != '_' {
            had_digits = true;
            output.push(self.get());
         }
         self.advance();
      }
      if !had_digits {
         return Err(self.error_at(start_location, ErrorKind::UnderscoresWithoutDigits));
      }
      Ok(())
   }
/// Collects digits into a string.
Collects digits into a string.
Collects digits into a string .
fn collect_digits(&mut self, output: &mut String, radix: u32) -> Result<(), Error> {
      let start_location = self.location;
      let mut had_digits = false;
      while Self::is_digit_or_underscore(self.get(), radix) {
         if self.get() != '_' {
            had_digits = true;
            output.push(self.get());
         }
         self.advance();
      }
      if !had_digits {
         return Err(self.error_at(start_location, ErrorKind::UnderscoresWithoutDigits));
      }
      Ok(())
   }
fn collect_digits ( & mut self , output : & mut String , radix : u32 ) -> Result < ( ) , Error > { let start_location = self . location ; let mut had_digits = false ; while Self :: is_digit_or_underscore ( self . get ( ) , radix ) { if self . get ( ) != '_' { had_digits = true ; output . push ( self . get ( ) ) ; } self . advance ( ) ; } if ! had_digits { return Err ( self . error_at ( start_location , ErrorKind :: UnderscoresWithoutDigits ) ) ; } Ok ( ( ) ) }
Collects digits into a string.
Collects digits into a string .
&mut self
output
&mut String
radix
u32