const-css-color 0.1.1

Css color parser at compile time
Documentation
1
2
3
4
5
6
7
8
use super::*;

impl Debug for HSLA32 {
    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
        let hsla = self.normalized();
        write!(f, "hsla({:?}, {:?}%, {:?}%, {:?})", hsla.h, hsla.s, hsla.l, hsla.a)
    }
}