Skip to content

Commit dc39bd5

Browse files
committed
Add documentation for Hsl and Hwb structs.
1 parent 45bc47e commit dc39bd5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/color.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ impl ToCss for RGBA {
150150
}
151151
}
152152

153+
/// Color specified by hue, saturation and lightness components.
153154
#[derive(Clone, Copy, PartialEq, Debug)]
154155
pub struct Hsl {
155156
/// The hue component.
@@ -215,6 +216,7 @@ impl<'de> Deserialize<'de> for Hsl {
215216
}
216217
}
217218

219+
/// Color specified by hue, whiteness and blackness components.
218220
#[derive(Clone, Copy, PartialEq, Debug)]
219221
pub struct Hwb {
220222
/// The hue component.

0 commit comments

Comments
 (0)