Function css_colors::deg
source · Expand description
Construct an angle from degrees. Angles outside of the 0-359° range will be normalized accordingly.
Example
use css_colors::{deg};
assert_eq!(deg(0).to_string(), "0deg");
assert_eq!(deg(90).to_string(), "90deg");
assert_eq!(deg(540).to_string(), "180deg");
assert_eq!(deg(-90).to_string(), "270deg");