Skip to content

Commit 66d9ec8

Browse files
committed
stl: add AlphaDash types
1 parent 08ce728 commit 66d9ec8

File tree

1 file changed

+243
-0
lines changed

1 file changed

+243
-0
lines changed

rust/src/stl.rs

Lines changed: 243 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,69 @@ pub enum AlphaCaps {
716716
Z = b'Z',
717717
}
718718

719+
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Display)]
720+
#[derive(StrictDumb, StrictType, StrictEncode, StrictDecode)]
721+
#[strict_type(lib = LIB_NAME_STD, tags = repr, into_u8, try_from_u8, crate = crate)]
722+
#[display(inner)]
723+
#[repr(u8)]
724+
pub enum AlphaCapsDash {
725+
#[strict_type(dumb)]
726+
#[display("-")]
727+
Dash = b'-',
728+
#[strict_type(rename = "_A")]
729+
A = b'A',
730+
#[strict_type(rename = "_B")]
731+
B = b'B',
732+
#[strict_type(rename = "_C")]
733+
C = b'C',
734+
#[strict_type(rename = "_D")]
735+
D = b'D',
736+
#[strict_type(rename = "_E")]
737+
E = b'E',
738+
#[strict_type(rename = "_F")]
739+
F = b'F',
740+
#[strict_type(rename = "_G")]
741+
G = b'G',
742+
#[strict_type(rename = "_H")]
743+
H = b'H',
744+
#[strict_type(rename = "_I")]
745+
I = b'I',
746+
#[strict_type(rename = "_J")]
747+
J = b'J',
748+
#[strict_type(rename = "_K")]
749+
K = b'K',
750+
#[strict_type(rename = "_L")]
751+
L = b'L',
752+
#[strict_type(rename = "_M")]
753+
M = b'M',
754+
#[strict_type(rename = "_N")]
755+
N = b'N',
756+
#[strict_type(rename = "_O")]
757+
O = b'O',
758+
#[strict_type(rename = "_P")]
759+
P = b'P',
760+
#[strict_type(rename = "_Q")]
761+
Q = b'Q',
762+
#[strict_type(rename = "_R")]
763+
R = b'R',
764+
#[strict_type(rename = "_S")]
765+
S = b'S',
766+
#[strict_type(rename = "_T")]
767+
T = b'T',
768+
#[strict_type(rename = "_U")]
769+
U = b'U',
770+
#[strict_type(rename = "_V")]
771+
V = b'V',
772+
#[strict_type(rename = "_W")]
773+
W = b'W',
774+
#[strict_type(rename = "_X")]
775+
X = b'X',
776+
#[strict_type(rename = "_Y")]
777+
Y = b'Y',
778+
#[strict_type(rename = "_Z")]
779+
Z = b'Z',
780+
}
781+
719782
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Display)]
720783
#[derive(StrictDumb, StrictType, StrictEncode, StrictDecode)]
721784
#[strict_type(lib = LIB_NAME_STD, tags = repr, into_u8, try_from_u8, crate = crate)]
@@ -839,6 +902,68 @@ pub enum AlphaSmall {
839902
Z = b'z',
840903
}
841904

905+
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Display)]
906+
#[derive(StrictDumb, StrictType, StrictEncode, StrictDecode)]
907+
#[strict_type(lib = LIB_NAME_STD, tags = repr, into_u8, try_from_u8, crate = crate)]
908+
#[repr(u8)]
909+
pub enum AlphaSmallDash {
910+
#[strict_type(dumb)]
911+
#[display("-")]
912+
Dash = b'-',
913+
#[display("a")]
914+
A = b'a',
915+
#[display("b")]
916+
B = b'b',
917+
#[display("c")]
918+
C = b'c',
919+
#[display("d")]
920+
D = b'd',
921+
#[display("e")]
922+
E = b'e',
923+
#[display("f")]
924+
F = b'f',
925+
#[display("g")]
926+
G = b'g',
927+
#[display("h")]
928+
H = b'h',
929+
#[display("i")]
930+
I = b'i',
931+
#[display("j")]
932+
J = b'j',
933+
#[display("k")]
934+
K = b'k',
935+
#[display("l")]
936+
L = b'l',
937+
#[display("m")]
938+
M = b'm',
939+
#[display("n")]
940+
N = b'n',
941+
#[display("o")]
942+
O = b'o',
943+
#[display("p")]
944+
P = b'p',
945+
#[display("q")]
946+
Q = b'q',
947+
#[display("r")]
948+
R = b'r',
949+
#[display("s")]
950+
S = b's',
951+
#[display("t")]
952+
T = b't',
953+
#[display("u")]
954+
U = b'u',
955+
#[display("v")]
956+
V = b'v',
957+
#[display("w")]
958+
W = b'w',
959+
#[display("x")]
960+
X = b'x',
961+
#[display("y")]
962+
Y = b'y',
963+
#[display("z")]
964+
Z = b'z',
965+
}
966+
842967
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Display)]
843968
#[derive(StrictDumb, StrictType, StrictEncode, StrictDecode)]
844969
#[strict_type(lib = LIB_NAME_STD, tags = repr, into_u8, try_from_u8, crate = crate)]
@@ -1013,6 +1138,121 @@ pub enum Alpha {
10131138
z = b'z',
10141139
}
10151140

1141+
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Display)]
1142+
#[derive(StrictDumb, StrictType, StrictEncode, StrictDecode)]
1143+
#[strict_type(lib = LIB_NAME_STD, tags = repr, into_u8, try_from_u8, crate = crate)]
1144+
#[display(inner)]
1145+
#[repr(u8)]
1146+
pub enum AlphaDash {
1147+
#[strict_type(dumb)]
1148+
#[display("-")]
1149+
Dash = b'-',
1150+
#[strict_type(dumb, rename = "_A")]
1151+
A = b'A',
1152+
#[strict_type(rename = "_B")]
1153+
B = b'B',
1154+
#[strict_type(rename = "_C")]
1155+
C = b'C',
1156+
#[strict_type(rename = "_D")]
1157+
D = b'D',
1158+
#[strict_type(rename = "_E")]
1159+
E = b'E',
1160+
#[strict_type(rename = "_F")]
1161+
F = b'F',
1162+
#[strict_type(rename = "_G")]
1163+
G = b'G',
1164+
#[strict_type(rename = "_H")]
1165+
H = b'H',
1166+
#[strict_type(rename = "_I")]
1167+
I = b'I',
1168+
#[strict_type(rename = "_J")]
1169+
J = b'J',
1170+
#[strict_type(rename = "_K")]
1171+
K = b'K',
1172+
#[strict_type(rename = "_L")]
1173+
L = b'L',
1174+
#[strict_type(rename = "_M")]
1175+
M = b'M',
1176+
#[strict_type(rename = "_N")]
1177+
N = b'N',
1178+
#[strict_type(rename = "_O")]
1179+
O = b'O',
1180+
#[strict_type(rename = "_P")]
1181+
P = b'P',
1182+
#[strict_type(rename = "_Q")]
1183+
Q = b'Q',
1184+
#[strict_type(rename = "_R")]
1185+
R = b'R',
1186+
#[strict_type(rename = "_S")]
1187+
S = b'S',
1188+
#[strict_type(rename = "_T")]
1189+
T = b'T',
1190+
#[strict_type(rename = "_U")]
1191+
U = b'U',
1192+
#[strict_type(rename = "_V")]
1193+
V = b'V',
1194+
#[strict_type(rename = "_W")]
1195+
W = b'W',
1196+
#[strict_type(rename = "_X")]
1197+
X = b'X',
1198+
#[strict_type(rename = "_Y")]
1199+
Y = b'Y',
1200+
#[strict_type(rename = "_Z")]
1201+
Z = b'Z',
1202+
#[display("a")]
1203+
a = b'a',
1204+
#[display("b")]
1205+
b = b'b',
1206+
#[display("c")]
1207+
c = b'c',
1208+
#[display("d")]
1209+
d = b'd',
1210+
#[display("e")]
1211+
e = b'e',
1212+
#[display("f")]
1213+
f = b'f',
1214+
#[display("g")]
1215+
g = b'g',
1216+
#[display("h")]
1217+
h = b'h',
1218+
#[display("i")]
1219+
i = b'i',
1220+
#[display("j")]
1221+
j = b'j',
1222+
#[display("k")]
1223+
k = b'k',
1224+
#[display("l")]
1225+
l = b'l',
1226+
#[display("m")]
1227+
m = b'm',
1228+
#[display("n")]
1229+
n = b'n',
1230+
#[display("o")]
1231+
o = b'o',
1232+
#[display("p")]
1233+
p = b'p',
1234+
#[display("q")]
1235+
q = b'q',
1236+
#[display("r")]
1237+
r = b'r',
1238+
#[display("s")]
1239+
s = b's',
1240+
#[display("t")]
1241+
t = b't',
1242+
#[display("u")]
1243+
u = b'u',
1244+
#[display("v")]
1245+
v = b'v',
1246+
#[display("w")]
1247+
w = b'w',
1248+
#[display("x")]
1249+
x = b'x',
1250+
#[display("y")]
1251+
y = b'y',
1252+
#[display("z")]
1253+
z = b'z',
1254+
}
1255+
10161256
#[derive(Copy, Clone, Ord, PartialOrd, Eq, PartialEq, Hash, Debug, Display)]
10171257
#[derive(StrictDumb, StrictType, StrictEncode, StrictDecode)]
10181258
#[strict_type(lib = LIB_NAME_STD, tags = repr, into_u8, try_from_u8, crate = crate)]
@@ -1723,10 +1963,13 @@ pub enum AlphaNumLodash {
17231963
impl RestrictedCharSet for AsciiPrintable {}
17241964
impl RestrictedCharSet for AsciiSym {}
17251965
impl RestrictedCharSet for Alpha {}
1966+
impl RestrictedCharSet for AlphaDash {}
17261967
impl RestrictedCharSet for AlphaLodash {}
17271968
impl RestrictedCharSet for AlphaCaps {}
1969+
impl RestrictedCharSet for AlphaCapsDash {}
17281970
impl RestrictedCharSet for AlphaCapsLodash {}
17291971
impl RestrictedCharSet for AlphaSmall {}
1972+
impl RestrictedCharSet for AlphaSmallDash {}
17301973
impl RestrictedCharSet for AlphaSmallLodash {}
17311974
impl RestrictedCharSet for AlphaNum {}
17321975
impl RestrictedCharSet for AlphaNumDash {}

0 commit comments

Comments
 (0)