tailwind_css_fixes/systems/units/axis_xy/traits.rs
1use super::*;
2
3impl From<bool> for AxisXY {
4 fn from(s: bool) -> Self {
5 match s {
6 true => Self::X,
7 false => Self::Y,
8 }
9 }
10}
11
12impl From<Option<bool>> for AxisXY {
13 fn from(s: Option<bool>) -> Self {
14 match s {
15 Some(true) => Self::X,
16 Some(false) => Self::Y,
17 None => Self::N,
18 }
19 }
20}