pub fn digits(n: u32) -> Digits {
  let mut div = 1;
  loop {
    let next = div * 10;
    if next > n {
      return Digits { div, n };
    }
    div = next;
  }
}
/// Returns an iterator over the decimal digits of `n` from left to right.
Returns an iterator over the decimal digits of `n` from left to right.
Returns an iterator over the decimal digits of ` n ` from left to right .
pub fn digits(n: u32) -> Digits {
  let mut div = 1;
  loop {
    let next = div * 10;
    if next > n {
      return Digits { div, n };
    }
    div = next;
  }
}
pub fn digits ( n : u32 ) -> Digits { let mut div = 1 ; loop { let next = div * 10 ; if next > n { return Digits { div , n } ; } div = next ; } }
Returns an iterator over the decimal digits of `n` from left to right.
Returns an iterator over the decimal digits of ` n ` from left to right .
n
u32
n
u32