pub trait IntoDigits: Sized {
type Digit;
// Provided methods
fn into_digits(self) -> impl Iterator<Item = Self::Digit> { ... }
fn into_rev_digits(self) -> impl Iterator<Item = Self::Digit> { ... }
}Expand description
Decompose a non-negative integer into its base-10 digits.
Required Associated Types§
Provided Methods§
Sourcefn into_digits(self) -> impl Iterator<Item = Self::Digit>
fn into_digits(self) -> impl Iterator<Item = Self::Digit>
Iterator over digits, most-significant first.
Sourcefn into_rev_digits(self) -> impl Iterator<Item = Self::Digit>
fn into_rev_digits(self) -> impl Iterator<Item = Self::Digit>
Iterator over digits, least-significant first.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".