pub trait FromStrRadix: Sized {
// Required method
fn from_str_by_radix(src: &str) -> Result<Self, ParseIntError>;
}
Expand description
This trait allows to parse integer literals of any type generically.
The literal may optionally start with a -
and/or 0x
or 0o
or 0b`.
Required Methods§
fn from_str_by_radix(src: &str) -> Result<Self, ParseIntError>
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.