Expand description
Construct an ratio from percentages. Values outside of the 0-100% range will cause a panic.
Example
use farver::{percent};
assert_eq!(percent(0).to_string(), "0%");
assert_eq!(percent(25).to_string(), "25%");
assert_eq!(percent(100).to_string(), "100%");