pub trait ParseNumber: Sized {
// Required method
fn parse_number(s: &str) -> Result<Self, String>;
}Expand description
Helper trait for parsing numbers from strings.
Required Methods§
Sourcefn parse_number(s: &str) -> Result<Self, String>
fn parse_number(s: &str) -> Result<Self, String>
Parse a number from a string.
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.
Implementors§
impl ParseNumber for Number
Available on crate feature
f64-floats only.