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§

source

type Error

The parse error type.

Required Methods§

source

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.

Implementations on Foreign Types§

source§

impl FromScientific for f32

§

type Error = Error

source§

fn parse_scientific(s: &str) -> Result<Self, Self::Error>

source§

impl FromScientific for f64

§

type Error = Error

source§

fn parse_scientific(s: &str) -> Result<Self, Self::Error>

Implementors§