Trait percentage_rs::Percent [−][src]
pub trait Percent { fn percent(self) -> Percentage; }
Expand description
Transform any number into Percentage
Required methods
fn percent(self) -> Percentage
[src]
Expand description
Transform any number into Percentage
Examples
use percentage_rs::Percent; let percent = 50.percent(); println!("{}", percent);