pub trait NumParseTool: Sized + Copy {
const ZERO: Self;
// Required methods
fn try_from_ascii_decimal(code: u8) -> Option<Self>;
fn checked_mul_ten(self) -> Result<Self>;
fn checked_add(self, rhs: Self) -> Result<Self>;
}Expand description
Helper trait for parsing integers
Required Associated Constants§
Required Methods§
fn try_from_ascii_decimal(code: u8) -> Option<Self>
fn checked_mul_ten(self) -> Result<Self>
fn checked_add(self, rhs: Self) -> Result<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.