Trait ExpDisplay

Source
pub trait ExpDisplay {
    // Required method
    fn to_exp_string(&self) -> String;

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

Required Methods§

Source

fn to_exp_string(&self) -> String

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

Provided Methods§

Source

fn to_exp(&self) -> String

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

Implementors§