Trait currencyapi::FromScientific
source · pub trait FromScientific: Sized {
type Error;
// Required method
fn parse_scientific(s: &str) -> Result<Self, Self::Error>;
}
Expand description
Scientific notation parsing.
Required Associated Types§
Required Methods§
sourcefn parse_scientific(s: &str) -> Result<Self, Self::Error>
fn parse_scientific(s: &str) -> Result<Self, Self::Error>
Parses a decimal number from a string.
The number representation may or may not be in scientific notation.