Trait to_string::ExpDisplay [] [src]

pub trait ExpDisplay {
    fn to_exp_string(&self) -> String;

    fn to_exp(&self) -> String { ... }
}

Required Methods

use to_string::ExpDisplay;
assert_eq!("4.21e1", (42.1).to_exp_string())

Provided Methods

use to_string::ExpDisplay;
assert_eq!("4.21e1", (42.1).to_exp())

Implementors