pub trait ExpDisplay {
// Required method
fn to_exp_string(&self) -> String;
// Provided method
fn to_exp(&self) -> String { ... }
}
Required Methods§
Sourcefn to_exp_string(&self) -> String
fn to_exp_string(&self) -> String
use to_string::ExpDisplay;
assert_eq!("4.21e1", (42.1).to_exp_string())