#![allow(non_upper_case_globals, non_snake_case, dead_code)]
pub mod EnumAstNodeStatus {
pub const Validated: u32 = 1;
pub const Invalid: u32 = 2;
pub const Unvalidated: u32 = 4;
pub const ValidationFailed: u32 = 8;
pub const Unknown: u32 = 16;
pub const Unparsed: u32 = 32;
pub const Disallowed: u32 = 64;
pub const Malformed: u32 = 128;
pub const ImportantDeclaration: u32 = 256;
pub const PowerlessColorComponent: u32 = 512;
pub const StateMask: u32 = 65535;
pub const HasChildren: u32 = 65536;
pub const HasValues: u32 = 131072;
pub const HasLocation: u32 = 262144;
pub const Marked: u32 = 524288;
pub const Matched: u32 = 1048576;
pub fn name(value: u32) -> Option<&'static str> {
match value {
1 => Some("Validated"),
2 => Some("Invalid"),
4 => Some("Unvalidated"),
8 => Some("ValidationFailed"),
16 => Some("Unknown"),
32 => Some("Unparsed"),
64 => Some("Disallowed"),
128 => Some("Malformed"),
256 => Some("ImportantDeclaration"),
512 => Some("PowerlessColorComponent"),
65535 => Some("StateMask"),
65536 => Some("HasChildren"),
131072 => Some("HasValues"),
262144 => Some("HasLocation"),
524288 => Some("Marked"),
1048576 => Some("Matched"),
_ => Option::None,
}
}
pub fn value(name: &str) -> Option<u32> {
match name {
"Validated" => Some(1),
"Invalid" => Some(2),
"Unvalidated" => Some(4),
"ValidationFailed" => Some(8),
"Unknown" => Some(16),
"Unparsed" => Some(32),
"Disallowed" => Some(64),
"Malformed" => Some(128),
"ImportantDeclaration" => Some(256),
"PowerlessColorComponent" => Some(512),
"StateMask" => Some(65535),
"HasChildren" => Some(65536),
"HasValues" => Some(131072),
"HasLocation" => Some(262144),
"Marked" => Some(524288),
"Matched" => Some(1048576),
_ => Option::None,
}
}
}
pub mod EnumToken {
pub const CommentTokenType: u8 = 1;
pub const CDOCOMMTokenType: u8 = 2;
pub const StyleSheetNodeType: u8 = 3;
pub const AtRuleNodeType: u8 = 4;
pub const RuleNodeType: u8 = 5;
pub const DeclarationNodeType: u8 = 6;
pub const LiteralTokenType: u8 = 7;
pub const IdenTokenType: u8 = 8;
pub const DashedIdenTokenType: u8 = 9;
pub const CommaTokenType: u8 = 10;
pub const ColonTokenType: u8 = 11;
pub const SemiColonTokenType: u8 = 12;
pub const NumberTokenType: u8 = 13;
pub const AtRuleTokenType: u8 = 14;
pub const PercentageTokenType: u8 = 15;
pub const FunctionTokenType: u8 = 16;
pub const TimelineFunctionTokenType: u8 = 17;
pub const TimingFunctionTokenType: u8 = 18;
pub const UrlFunctionTokenType: u8 = 19;
pub const ImageFunctionTokenType: u8 = 20;
pub const StringTokenType: u8 = 21;
pub const UnclosedStringTokenType: u8 = 22;
pub const DimensionTokenType: u8 = 23;
pub const LengthTokenType: u8 = 24;
pub const AngleTokenType: u8 = 25;
pub const TimeTokenType: u8 = 26;
pub const FrequencyTokenType: u8 = 27;
pub const ResolutionTokenType: u8 = 28;
pub const HashTokenType: u8 = 29;
pub const BlockStartTokenType: u8 = 30;
pub const BlockEndTokenType: u8 = 31;
pub const AttrStartTokenType: u8 = 32;
pub const AttrEndTokenType: u8 = 33;
pub const StartParensTokenType: u8 = 34;
pub const EndParensTokenType: u8 = 35;
pub const ParensTokenType: u8 = 36;
pub const WhitespaceTokenType: u8 = 37;
pub const IncludeMatchTokenType: u8 = 38;
pub const DashMatchTokenType: u8 = 39;
pub const EqualMatchTokenType: u8 = 40;
pub const LtTokenType: u8 = 41;
pub const LteTokenType: u8 = 42;
pub const GtTokenType: u8 = 43;
pub const GteTokenType: u8 = 44;
pub const PseudoClassTokenType: u8 = 45;
pub const PseudoClassFuncTokenType: u8 = 46;
pub const DelimTokenType: u8 = 47;
pub const UrlTokenTokenType: u8 = 48;
pub const EOFTokenType: u8 = 49;
pub const ImportantTokenType: u8 = 50;
pub const ColorTokenType: u8 = 51;
pub const AttrTokenType: u8 = 52;
pub const BadCommentTokenType: u8 = 53;
pub const BadCdoTokenType: u8 = 54;
pub const BadUrlTokenType: u8 = 55;
pub const BadStringTokenType: u8 = 56;
pub const BinaryExpressionTokenType: u8 = 57;
pub const UnaryExpressionTokenType: u8 = 58;
pub const FlexTokenType: u8 = 59;
pub const ListToken: u8 = 60;
pub const Add: u8 = 61;
pub const Mul: u8 = 62;
pub const Div: u8 = 63;
pub const Sub: u8 = 64;
pub const ColumnCombinatorTokenType: u8 = 65;
pub const ContainMatchTokenType: u8 = 66;
pub const StartMatchTokenType: u8 = 67;
pub const EndMatchTokenType: u8 = 68;
pub const MatchExpressionTokenType: u8 = 69;
pub const NameSpaceAttributeTokenType: u8 = 70;
pub const FractionTokenType: u8 = 71;
pub const IdenListTokenType: u8 = 72;
pub const GridTemplateFuncTokenType: u8 = 73;
pub const KeyframesRuleNodeType: u8 = 74;
pub const ClassSelectorTokenType: u8 = 75;
pub const UniversalSelectorTokenType: u8 = 76;
pub const ChildCombinatorTokenType: u8 = 77;
pub const DescendantCombinatorTokenType: u8 = 78;
pub const NextSiblingCombinatorTokenType: u8 = 79;
pub const SubsequentSiblingCombinatorTokenType: u8 = 80;
pub const NestingSelectorTokenType: u8 = 81;
pub const MediaQueryConditionTokenType: u8 = 82;
pub const MediaFeatureTokenType: u8 = 83;
pub const OnlyTokenType: u8 = 84;
pub const NotTokenType: u8 = 85;
pub const AndTokenType: u8 = 86;
pub const OrTokenType: u8 = 87;
pub const PseudoPageTokenType: u8 = 88;
pub const PseudoElementTokenType: u8 = 89;
pub const KeyframesAtRuleNodeType: u8 = 90;
pub const ComposesSelectorNodeType: u8 = 91;
pub const CssVariableTokenType: u8 = 92;
pub const CssVariableImportTokenType: u8 = 93;
pub const CssVariableDeclarationMapTokenType: u8 = 94;
pub const MediaRangeQueryTokenType: u8 = 95;
pub const SupportsQueryConditionTokenType: u8 = 96;
pub const SupportsQueryUnaryConditionTokenType: u8 = 97;
pub const WhenElseQueryConditionTokenType: u8 = 98;
pub const WhenElseUnaryConditionTokenType: u8 = 99;
pub const ContainerStyleRangeTokenType: u8 = 100;
pub const Star: u8 = 101;
pub const Plus: u8 = 102;
pub const Tilda: u8 = 103;
pub const PipeTokenType: u8 = 104;
pub const DoubleColonTokenType: u8 = 105;
pub const MathFunctionTokenType: u8 = 106;
pub const TransformFunctionTokenType: u8 = 107;
pub const WhenElseFunctionTokenType: u8 = 108;
pub const GeneralEnclosedFunctionTokenType: u8 = 109;
pub const SupportsFunctionTokenType: u8 = 110;
pub const ContainerFunctionTokenType: u8 = 111;
pub const RawNodeTokenType: u8 = 112;
pub const MediaQueryUnaryFeatureTokenType: u8 = 113;
pub const GridTemplateFuncTokenDefType: u8 = 114;
pub const ImageFunctionTokenDefType: u8 = 115;
pub const TimelineFunctionTokenDefType: u8 = 116;
pub const FunctionTokenDefType: u8 = 117;
pub const TimingFunctionTokenDefType: u8 = 118;
pub const ColorFunctionTokenDefType: u8 = 119;
pub const MathFunctionTokenDefType: u8 = 120;
pub const ContainerFunctionTokenDefType: u8 = 121;
pub const UrlFunctionTokenDefType: u8 = 122;
pub const PseudoClassFunctionTokenDefType: u8 = 123;
pub const TransformFunctionTokenDefType: u8 = 124;
pub const WhenElseFunctionTokenDefType: u8 = 125;
pub const GeneralEnclosedFunctionTokenDefType: u8 = 126;
pub const SupportsFunctionTokenDefType: u8 = 127;
pub const CustomFunctionTokenDefType: u8 = 128;
pub const CustomFunctionTokenType: u8 = 129;
pub const WildCardFunctionTokenDefType: u8 = 130;
pub const WildCardFunctionTokenType: u8 = 131;
pub const IfConditionTokenType: u8 = 132;
pub const IfElseConditionTokenType: u8 = 133;
pub const WrappedValuesTokenType: u8 = 134;
pub const ListTokenType: u8 = 135;
pub const NaNTokenType: u8 = 136;
pub const InfinityTokenType: u8 = 137;
pub const NegativeInfinityTokenType: u8 = 138;
pub const CssTypeTokenType: u8 = 139;
pub const UserDefinedDimensionTokenType: u8 = 140;
pub const UniCodeRange: u8 = 141;
pub const Time: u8 = 26;
pub const Iden: u8 = 8;
pub const EOF: u8 = 49;
pub const Hash: u8 = 29;
pub const Flex: u8 = 59;
pub const Angle: u8 = 25;
pub const Color: u8 = 51;
pub const Comma: u8 = 10;
pub const String: u8 = 21;
pub const Length: u8 = 24;
pub const Number: u8 = 13;
pub const Perc: u8 = 15;
pub const Literal: u8 = 7;
pub const Comment: u8 = 1;
pub const UrlFunc: u8 = 19;
pub const Dimension: u8 = 23;
pub const Frequency: u8 = 27;
pub const Resolution: u8 = 28;
pub const Whitespace: u8 = 37;
pub const IdenList: u8 = 72;
pub const DashedIden: u8 = 9;
pub const GridTemplateFunc: u8 = 73;
pub const ImageFunc: u8 = 20;
pub const CommentNodeType: u8 = 1;
pub const CDOCOMMNodeType: u8 = 2;
pub const TimingFunction: u8 = 18;
pub const TimelineFunction: u8 = 17;
pub fn name(value: u8) -> Option<&'static str> {
match value {
3 => Some("StyleSheetNodeType"),
4 => Some("AtRuleNodeType"),
5 => Some("RuleNodeType"),
6 => Some("DeclarationNodeType"),
11 => Some("ColonTokenType"),
12 => Some("SemiColonTokenType"),
14 => Some("AtRuleTokenType"),
16 => Some("FunctionTokenType"),
22 => Some("UnclosedStringTokenType"),
30 => Some("BlockStartTokenType"),
31 => Some("BlockEndTokenType"),
32 => Some("AttrStartTokenType"),
33 => Some("AttrEndTokenType"),
34 => Some("StartParensTokenType"),
35 => Some("EndParensTokenType"),
36 => Some("ParensTokenType"),
38 => Some("IncludeMatchTokenType"),
39 => Some("DashMatchTokenType"),
40 => Some("EqualMatchTokenType"),
41 => Some("LtTokenType"),
42 => Some("LteTokenType"),
43 => Some("GtTokenType"),
44 => Some("GteTokenType"),
45 => Some("PseudoClassTokenType"),
46 => Some("PseudoClassFuncTokenType"),
47 => Some("DelimTokenType"),
48 => Some("UrlTokenTokenType"),
50 => Some("ImportantTokenType"),
52 => Some("AttrTokenType"),
53 => Some("BadCommentTokenType"),
54 => Some("BadCdoTokenType"),
55 => Some("BadUrlTokenType"),
56 => Some("BadStringTokenType"),
57 => Some("BinaryExpressionTokenType"),
58 => Some("UnaryExpressionTokenType"),
60 => Some("ListToken"),
61 => Some("Add"),
62 => Some("Mul"),
63 => Some("Div"),
64 => Some("Sub"),
65 => Some("ColumnCombinatorTokenType"),
66 => Some("ContainMatchTokenType"),
67 => Some("StartMatchTokenType"),
68 => Some("EndMatchTokenType"),
69 => Some("MatchExpressionTokenType"),
70 => Some("NameSpaceAttributeTokenType"),
71 => Some("FractionTokenType"),
74 => Some("KeyframesRuleNodeType"),
75 => Some("ClassSelectorTokenType"),
76 => Some("UniversalSelectorTokenType"),
77 => Some("ChildCombinatorTokenType"),
78 => Some("DescendantCombinatorTokenType"),
79 => Some("NextSiblingCombinatorTokenType"),
80 => Some("SubsequentSiblingCombinatorTokenType"),
81 => Some("NestingSelectorTokenType"),
82 => Some("MediaQueryConditionTokenType"),
83 => Some("MediaFeatureTokenType"),
84 => Some("OnlyTokenType"),
85 => Some("NotTokenType"),
86 => Some("AndTokenType"),
87 => Some("OrTokenType"),
88 => Some("PseudoPageTokenType"),
89 => Some("PseudoElementTokenType"),
90 => Some("KeyframesAtRuleNodeType"),
91 => Some("ComposesSelectorNodeType"),
92 => Some("CssVariableTokenType"),
93 => Some("CssVariableImportTokenType"),
94 => Some("CssVariableDeclarationMapTokenType"),
95 => Some("MediaRangeQueryTokenType"),
96 => Some("SupportsQueryConditionTokenType"),
97 => Some("SupportsQueryUnaryConditionTokenType"),
98 => Some("WhenElseQueryConditionTokenType"),
99 => Some("WhenElseUnaryConditionTokenType"),
100 => Some("ContainerStyleRangeTokenType"),
101 => Some("Star"),
102 => Some("Plus"),
103 => Some("Tilda"),
104 => Some("PipeTokenType"),
105 => Some("DoubleColonTokenType"),
106 => Some("MathFunctionTokenType"),
107 => Some("TransformFunctionTokenType"),
108 => Some("WhenElseFunctionTokenType"),
109 => Some("GeneralEnclosedFunctionTokenType"),
110 => Some("SupportsFunctionTokenType"),
111 => Some("ContainerFunctionTokenType"),
112 => Some("RawNodeTokenType"),
113 => Some("MediaQueryUnaryFeatureTokenType"),
114 => Some("GridTemplateFuncTokenDefType"),
115 => Some("ImageFunctionTokenDefType"),
116 => Some("TimelineFunctionTokenDefType"),
117 => Some("FunctionTokenDefType"),
118 => Some("TimingFunctionTokenDefType"),
119 => Some("ColorFunctionTokenDefType"),
120 => Some("MathFunctionTokenDefType"),
121 => Some("ContainerFunctionTokenDefType"),
122 => Some("UrlFunctionTokenDefType"),
123 => Some("PseudoClassFunctionTokenDefType"),
124 => Some("TransformFunctionTokenDefType"),
125 => Some("WhenElseFunctionTokenDefType"),
126 => Some("GeneralEnclosedFunctionTokenDefType"),
127 => Some("SupportsFunctionTokenDefType"),
128 => Some("CustomFunctionTokenDefType"),
129 => Some("CustomFunctionTokenType"),
130 => Some("WildCardFunctionTokenDefType"),
131 => Some("WildCardFunctionTokenType"),
132 => Some("IfConditionTokenType"),
133 => Some("IfElseConditionTokenType"),
134 => Some("WrappedValuesTokenType"),
135 => Some("ListTokenType"),
136 => Some("NaNTokenType"),
137 => Some("InfinityTokenType"),
138 => Some("NegativeInfinityTokenType"),
139 => Some("CssTypeTokenType"),
140 => Some("UserDefinedDimensionTokenType"),
141 => Some("UniCodeRange"),
26 => Some("Time"),
8 => Some("Iden"),
49 => Some("EOF"),
29 => Some("Hash"),
59 => Some("Flex"),
25 => Some("Angle"),
51 => Some("Color"),
10 => Some("Comma"),
21 => Some("String"),
24 => Some("Length"),
13 => Some("Number"),
15 => Some("Perc"),
7 => Some("Literal"),
19 => Some("UrlFunc"),
23 => Some("Dimension"),
27 => Some("Frequency"),
28 => Some("Resolution"),
37 => Some("Whitespace"),
72 => Some("IdenList"),
9 => Some("DashedIden"),
73 => Some("GridTemplateFunc"),
20 => Some("ImageFunc"),
1 => Some("CommentNodeType"),
2 => Some("CDOCOMMNodeType"),
18 => Some("TimingFunction"),
17 => Some("TimelineFunction"),
_ => Option::None,
}
}
pub fn value(name: &str) -> Option<u8> {
match name {
"CommentTokenType" => Some(1),
"CDOCOMMTokenType" => Some(2),
"StyleSheetNodeType" => Some(3),
"AtRuleNodeType" => Some(4),
"RuleNodeType" => Some(5),
"DeclarationNodeType" => Some(6),
"LiteralTokenType" => Some(7),
"IdenTokenType" => Some(8),
"DashedIdenTokenType" => Some(9),
"CommaTokenType" => Some(10),
"ColonTokenType" => Some(11),
"SemiColonTokenType" => Some(12),
"NumberTokenType" => Some(13),
"AtRuleTokenType" => Some(14),
"PercentageTokenType" => Some(15),
"FunctionTokenType" => Some(16),
"TimelineFunctionTokenType" => Some(17),
"TimingFunctionTokenType" => Some(18),
"UrlFunctionTokenType" => Some(19),
"ImageFunctionTokenType" => Some(20),
"StringTokenType" => Some(21),
"UnclosedStringTokenType" => Some(22),
"DimensionTokenType" => Some(23),
"LengthTokenType" => Some(24),
"AngleTokenType" => Some(25),
"TimeTokenType" => Some(26),
"FrequencyTokenType" => Some(27),
"ResolutionTokenType" => Some(28),
"HashTokenType" => Some(29),
"BlockStartTokenType" => Some(30),
"BlockEndTokenType" => Some(31),
"AttrStartTokenType" => Some(32),
"AttrEndTokenType" => Some(33),
"StartParensTokenType" => Some(34),
"EndParensTokenType" => Some(35),
"ParensTokenType" => Some(36),
"WhitespaceTokenType" => Some(37),
"IncludeMatchTokenType" => Some(38),
"DashMatchTokenType" => Some(39),
"EqualMatchTokenType" => Some(40),
"LtTokenType" => Some(41),
"LteTokenType" => Some(42),
"GtTokenType" => Some(43),
"GteTokenType" => Some(44),
"PseudoClassTokenType" => Some(45),
"PseudoClassFuncTokenType" => Some(46),
"DelimTokenType" => Some(47),
"UrlTokenTokenType" => Some(48),
"EOFTokenType" => Some(49),
"ImportantTokenType" => Some(50),
"ColorTokenType" => Some(51),
"AttrTokenType" => Some(52),
"BadCommentTokenType" => Some(53),
"BadCdoTokenType" => Some(54),
"BadUrlTokenType" => Some(55),
"BadStringTokenType" => Some(56),
"BinaryExpressionTokenType" => Some(57),
"UnaryExpressionTokenType" => Some(58),
"FlexTokenType" => Some(59),
"ListToken" => Some(60),
"Add" => Some(61),
"Mul" => Some(62),
"Div" => Some(63),
"Sub" => Some(64),
"ColumnCombinatorTokenType" => Some(65),
"ContainMatchTokenType" => Some(66),
"StartMatchTokenType" => Some(67),
"EndMatchTokenType" => Some(68),
"MatchExpressionTokenType" => Some(69),
"NameSpaceAttributeTokenType" => Some(70),
"FractionTokenType" => Some(71),
"IdenListTokenType" => Some(72),
"GridTemplateFuncTokenType" => Some(73),
"KeyframesRuleNodeType" => Some(74),
"ClassSelectorTokenType" => Some(75),
"UniversalSelectorTokenType" => Some(76),
"ChildCombinatorTokenType" => Some(77),
"DescendantCombinatorTokenType" => Some(78),
"NextSiblingCombinatorTokenType" => Some(79),
"SubsequentSiblingCombinatorTokenType" => Some(80),
"NestingSelectorTokenType" => Some(81),
"MediaQueryConditionTokenType" => Some(82),
"MediaFeatureTokenType" => Some(83),
"OnlyTokenType" => Some(84),
"NotTokenType" => Some(85),
"AndTokenType" => Some(86),
"OrTokenType" => Some(87),
"PseudoPageTokenType" => Some(88),
"PseudoElementTokenType" => Some(89),
"KeyframesAtRuleNodeType" => Some(90),
"ComposesSelectorNodeType" => Some(91),
"CssVariableTokenType" => Some(92),
"CssVariableImportTokenType" => Some(93),
"CssVariableDeclarationMapTokenType" => Some(94),
"MediaRangeQueryTokenType" => Some(95),
"SupportsQueryConditionTokenType" => Some(96),
"SupportsQueryUnaryConditionTokenType" => Some(97),
"WhenElseQueryConditionTokenType" => Some(98),
"WhenElseUnaryConditionTokenType" => Some(99),
"ContainerStyleRangeTokenType" => Some(100),
"Star" => Some(101),
"Plus" => Some(102),
"Tilda" => Some(103),
"PipeTokenType" => Some(104),
"DoubleColonTokenType" => Some(105),
"MathFunctionTokenType" => Some(106),
"TransformFunctionTokenType" => Some(107),
"WhenElseFunctionTokenType" => Some(108),
"GeneralEnclosedFunctionTokenType" => Some(109),
"SupportsFunctionTokenType" => Some(110),
"ContainerFunctionTokenType" => Some(111),
"RawNodeTokenType" => Some(112),
"MediaQueryUnaryFeatureTokenType" => Some(113),
"GridTemplateFuncTokenDefType" => Some(114),
"ImageFunctionTokenDefType" => Some(115),
"TimelineFunctionTokenDefType" => Some(116),
"FunctionTokenDefType" => Some(117),
"TimingFunctionTokenDefType" => Some(118),
"ColorFunctionTokenDefType" => Some(119),
"MathFunctionTokenDefType" => Some(120),
"ContainerFunctionTokenDefType" => Some(121),
"UrlFunctionTokenDefType" => Some(122),
"PseudoClassFunctionTokenDefType" => Some(123),
"TransformFunctionTokenDefType" => Some(124),
"WhenElseFunctionTokenDefType" => Some(125),
"GeneralEnclosedFunctionTokenDefType" => Some(126),
"SupportsFunctionTokenDefType" => Some(127),
"CustomFunctionTokenDefType" => Some(128),
"CustomFunctionTokenType" => Some(129),
"WildCardFunctionTokenDefType" => Some(130),
"WildCardFunctionTokenType" => Some(131),
"IfConditionTokenType" => Some(132),
"IfElseConditionTokenType" => Some(133),
"WrappedValuesTokenType" => Some(134),
"ListTokenType" => Some(135),
"NaNTokenType" => Some(136),
"InfinityTokenType" => Some(137),
"NegativeInfinityTokenType" => Some(138),
"CssTypeTokenType" => Some(139),
"UserDefinedDimensionTokenType" => Some(140),
"UniCodeRange" => Some(141),
"Time" => Some(26),
"Iden" => Some(8),
"EOF" => Some(49),
"Hash" => Some(29),
"Flex" => Some(59),
"Angle" => Some(25),
"Color" => Some(51),
"Comma" => Some(10),
"String" => Some(21),
"Length" => Some(24),
"Number" => Some(13),
"Perc" => Some(15),
"Literal" => Some(7),
"Comment" => Some(1),
"UrlFunc" => Some(19),
"Dimension" => Some(23),
"Frequency" => Some(27),
"Resolution" => Some(28),
"Whitespace" => Some(37),
"IdenList" => Some(72),
"DashedIden" => Some(9),
"GridTemplateFunc" => Some(73),
"ImageFunc" => Some(20),
"CommentNodeType" => Some(1),
"CDOCOMMNodeType" => Some(2),
"TimingFunction" => Some(18),
"TimelineFunction" => Some(17),
_ => Option::None,
}
}
}
pub mod ColorType {
pub const NONE: u8 = 0;
pub const SYS: u8 = 1;
pub const DPSYS: u8 = 2;
pub const LIT: u8 = 3;
pub const HEX: u8 = 4;
pub const RGBA: u8 = 5;
pub const HSLA: u8 = 6;
pub const HWB: u8 = 7;
pub const CMYK: u8 = 8;
pub const OKLAB: u8 = 9;
pub const OKLCH: u8 = 10;
pub const LAB: u8 = 11;
pub const LCH: u8 = 12;
pub const COLOR: u8 = 13;
pub const SRGB: u8 = 14;
pub const PROPHOTO_RGB: u8 = 15;
pub const A98_RGB: u8 = 16;
pub const REC2020: u8 = 17;
pub const DISPLAY_P3: u8 = 18;
pub const SRGB_LINEAR: u8 = 19;
pub const XYZ_D50: u8 = 20;
pub const XYZ_D65: u8 = 21;
pub const LIGHT_DARK: u8 = 22;
pub const COLOR_MIX: u8 = 23;
pub const NON_STD: u8 = 24;
pub const CUSTOM_COLOR: u8 = 25;
pub const ALPHA: u8 = 26;
pub const DISPLAY_P3_LINEAR: u8 = 27;
pub const CONTRAST_COLOR: u8 = 28;
pub const COLOR_LAYERS: u8 = 29;
pub const RGB: u8 = 5;
pub const HSL: u8 = 6;
pub const XYZ: u8 = 21;
pub const DEVICE_CMYK: u8 = 8;
pub fn name(value: u8) -> Option<&'static str> {
match value {
0 => Some("NONE"),
1 => Some("SYS"),
2 => Some("DPSYS"),
3 => Some("LIT"),
4 => Some("HEX"),
7 => Some("HWB"),
9 => Some("OKLAB"),
10 => Some("OKLCH"),
11 => Some("LAB"),
12 => Some("LCH"),
13 => Some("COLOR"),
14 => Some("SRGB"),
15 => Some("PROPHOTO_RGB"),
16 => Some("A98_RGB"),
17 => Some("REC2020"),
18 => Some("DISPLAY_P3"),
19 => Some("SRGB_LINEAR"),
20 => Some("XYZ_D50"),
22 => Some("LIGHT_DARK"),
23 => Some("COLOR_MIX"),
24 => Some("NON_STD"),
25 => Some("CUSTOM_COLOR"),
26 => Some("ALPHA"),
27 => Some("DISPLAY_P3_LINEAR"),
28 => Some("CONTRAST_COLOR"),
29 => Some("COLOR_LAYERS"),
5 => Some("RGB"),
6 => Some("HSL"),
21 => Some("XYZ"),
8 => Some("DEVICE_CMYK"),
_ => Option::None,
}
}
pub fn value(name: &str) -> Option<u8> {
match name {
"NONE" => Some(0),
"SYS" => Some(1),
"DPSYS" => Some(2),
"LIT" => Some(3),
"HEX" => Some(4),
"RGBA" => Some(5),
"HSLA" => Some(6),
"HWB" => Some(7),
"CMYK" => Some(8),
"OKLAB" => Some(9),
"OKLCH" => Some(10),
"LAB" => Some(11),
"LCH" => Some(12),
"COLOR" => Some(13),
"SRGB" => Some(14),
"PROPHOTO_RGB" => Some(15),
"A98_RGB" => Some(16),
"REC2020" => Some(17),
"DISPLAY_P3" => Some(18),
"SRGB_LINEAR" => Some(19),
"XYZ_D50" => Some(20),
"XYZ_D65" => Some(21),
"LIGHT_DARK" => Some(22),
"COLOR_MIX" => Some(23),
"NON_STD" => Some(24),
"CUSTOM_COLOR" => Some(25),
"ALPHA" => Some(26),
"DISPLAY_P3_LINEAR" => Some(27),
"CONTRAST_COLOR" => Some(28),
"COLOR_LAYERS" => Some(29),
"RGB" => Some(5),
"HSL" => Some(6),
"XYZ" => Some(21),
"DEVICE_CMYK" => Some(8),
_ => Option::None,
}
}
}
pub mod ModuleCaseTransformEnum {
pub const IgnoreCase: u32 = 1;
pub const CamelCase: u32 = 2;
pub const CamelCaseOnly: u32 = 4;
pub const DashCase: u32 = 8;
pub const DashCaseOnly: u32 = 16;
pub fn name(value: u32) -> Option<&'static str> {
match value {
1 => Some("IgnoreCase"),
2 => Some("CamelCase"),
4 => Some("CamelCaseOnly"),
8 => Some("DashCase"),
16 => Some("DashCaseOnly"),
_ => Option::None,
}
}
pub fn value(name: &str) -> Option<u32> {
match name {
"IgnoreCase" => Some(1),
"CamelCase" => Some(2),
"CamelCaseOnly" => Some(4),
"DashCase" => Some(8),
"DashCaseOnly" => Some(16),
_ => Option::None,
}
}
}
pub mod ModuleScopeEnumOptions {
pub const Global: u32 = 32;
pub const Local: u32 = 64;
pub const Pure: u32 = 128;
pub const ICSS: u32 = 256;
pub const Shortest: u32 = 512;
pub fn name(value: u32) -> Option<&'static str> {
match value {
32 => Some("Global"),
64 => Some("Local"),
128 => Some("Pure"),
256 => Some("ICSS"),
512 => Some("Shortest"),
_ => Option::None,
}
}
pub fn value(name: &str) -> Option<u32> {
match name {
"Global" => Some(32),
"Local" => Some(64),
"Pure" => Some(128),
"ICSS" => Some(256),
"Shortest" => Some(512),
_ => Option::None,
}
}
}
pub mod WalkerOptionEnum {
pub const Ignore: u32 = 1;
pub const Stop: u32 = 2;
pub const Children: u32 = 4;
pub const IgnoreChildren: u32 = 8;
pub fn name(value: u32) -> Option<&'static str> {
match value {
1 => Some("Ignore"),
2 => Some("Stop"),
4 => Some("Children"),
8 => Some("IgnoreChildren"),
_ => Option::None,
}
}
pub fn value(name: &str) -> Option<u32> {
match name {
"Ignore" => Some(1),
"Stop" => Some(2),
"Children" => Some(4),
"IgnoreChildren" => Some(8),
_ => Option::None,
}
}
}
pub mod WalkerEvent {
pub const Enter: u32 = 1;
pub const Leave: u32 = 2;
pub fn name(value: u32) -> Option<&'static str> {
match value {
1 => Some("Enter"),
2 => Some("Leave"),
_ => Option::None,
}
}
pub fn value(name: &str) -> Option<u32> {
match name {
"Enter" => Some(1),
"Leave" => Some(2),
_ => Option::None,
}
}
}
pub mod MergeRulesEnum {
pub const None: u32 = 0;
pub const Identical: u32 = 1;
pub const All: u32 = 2;
pub fn name(value: u32) -> Option<&'static str> {
match value {
0 => Some("None"),
1 => Some("Identical"),
2 => Some("All"),
_ => Option::None,
}
}
pub fn value(name: &str) -> Option<u32> {
match name {
"None" => Some(0),
"Identical" => Some(1),
"All" => Some(2),
_ => Option::None,
}
}
}