pub trait DigitUtils {
// Required methods
fn digit(self) -> u32;
fn leftmost_digit(self) -> Self;
fn rightmost_digit(self) -> Self;
fn nth_digit(self, n: u32) -> Self;
fn digit_sum(self) -> Self;
}
Required Methods§
fn digit(self) -> u32
fn leftmost_digit(self) -> Self
fn rightmost_digit(self) -> Self
fn nth_digit(self, n: u32) -> Self
fn digit_sum(self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.