1Type::Tiny::Manual::AllUTsyepresC(o3n)tributed Perl DocuTmyepnet:a:tTiionny::Manual::AllTypes(3)
2
3
4
6 Type::Tiny::Manual::AllTypes - alphabetical list of all type
7 constraints bundled with Type::Tiny
8
10 The following is a list of type constraints bundled with Type::Tiny,
11 with very brief descriptions. For more information, see the type
12 library's documentation, and the test cases in "t/21-types/".
13
14 GitHib link:
15 <https://github.com/tobyink/p5-type-tiny/tree/master/t/21-types>.
16
17 • Any in Types::Standard
18
19 Anything. Absolutely anything.
20
21 • ArrayLike [parameterizable] in Types::TypeTiny
22
23 Arrayrefs and objects overloading arrayfication.
24
25 • ArrayRef [parameterizable] in Types::Standard
26
27 Arrayrefs.
28
29 • Bool [has coercion] in Types::Standard
30
31 Booleans; the numbers or strings "0" and "1", the empty string, or
32 undef.
33
34 • ClassName in Types::Standard
35
36 Any loaded package name.
37
38 • CodeLike in Types::TypeTiny
39
40 Coderefs and objects overloading coderefification.
41
42 • CodeRef in Types::Standard
43
44 Coderefs.
45
46 • ConsumerOf [parameterizable] in Types::Standard
47
48 An object that DOES a particular role.
49
50 • CycleTuple [parameterizable] in Types::Standard
51
52 An arrayref with a repeating pattern of constraints on its values.
53
54 • Defined in Types::Standard
55
56 Any value other than undef.
57
58 • Dict [parameterizable] in Types::Standard
59
60 A hashref with constraints on each of its values.
61
62 • Enum [parameterizable] in Types::Standard
63
64 A string from an allowed set of strings.
65
66 • _ForeignTypeConstraint in Types::TypeTiny
67
68 A coderef or an object which Type::Tiny knows how to convert into a
69 Type::Tiny instance. (Yes, the name of this type starts with an
70 underscore.)
71
72 • FileHandle in Types::Standard
73
74 A reference where Scalar::Util::openhandle returns true, or a
75 blessed object in the IO::Handle class.
76
77 • GlobRef in Types::Standard
78
79 Globrefs
80
81 • HashLike [parameterizable] in Types::TypeTiny
82
83 Hashrefs and objects overloading hashrefification.
84
85 • HashRef [parameterizable] in Types::Standard
86
87 Hashrefs.
88
89 • HasMethods [parameterizable] in Types::Standard
90
91 An object that can do particular methods.
92
93 • InstanceOf [parameterizable] in Types::Standard
94
95 An object that isa particular class.
96
97 • Int in Types::Standard
98
99 A whole number, either positive, negative, or zero.
100
101 • IntRange [parameterizable] in Types::Common::Numeric
102
103 An integer within a particular numeric range.
104
105 • Item in Types::Standard
106
107 Any single item; effectively the same as Any.
108
109 • LaxNum in Types::Standard
110
111 A number; relaxed constraint that allows "inf".
112
113 • LowerCaseSimpleStr [has coercion] in Types::Common::String
114
115 A string less than 256 characters long with no line breaks or
116 uppercase letters.
117
118 • LowerCaseStr [has coercion] in Types::Common::String
119
120 A string with no uppercase letters.
121
122 • Map [parameterizable] in Types::Standard
123
124 A hashref with a constraint for the values and keys.
125
126 • Maybe [parameterizable] in Types::Standard
127
128 When parameterized, the same as its parameter, but also allows
129 undef.
130
131 • NegativeInt in Types::Common::Numeric
132
133 An integer below 0.
134
135 • NegativeNum in Types::Common::Numeric
136
137 A number below 0.
138
139 • NegativeOrZeroInt in Types::Common::Numeric
140
141 An integer below 0, or 0.
142
143 • NegativeOrZeroNum in Types::Common::Numeric
144
145 A number below 0, or 0.
146
147 • NonEmptySimpleStr in Types::Common::String
148
149 A string with more than 0 but less than 256 characters with no line
150 breaks.
151
152 • NonEmptyStr in Types::Common::String
153
154 A string with more than 0 characters.
155
156 • Num in Types::Standard
157
158 The same as LaxNum or StrictNum depending on environment.
159
160 • NumericCode [has coercion] in Types::Common::String
161
162 A string containing only digits.
163
164 • NumRange [parameterizable] in Types::Common::Numeric
165
166 A number within a particular numeric range.
167
168 • Object in Types::Standard
169
170 A blessed object.
171
172 • Optional [parameterizable] in Types::Standard
173
174 Used in conjunction with Dict, Tuple, or CycleTuple.
175
176 • OptList in Types::Standard
177
178 An arrayref of arrayrefs, where each of the inner arrayrefs are two
179 values, the first value being a string.
180
181 • Overload [parameterizable] in Types::Standard
182
183 An overloaded object.
184
185 • Password in Types::Common::String
186
187 A string at least 4 characters long and less than 256 characters
188 long with no line breaks.
189
190 • PositiveInt in Types::Common::Numeric
191
192 An integer above 0.
193
194 • PositiveNum in Types::Common::Numeric
195
196 A number above 0.
197
198 • PositiveOrZeroInt in Types::Common::Numeric
199
200 An integer above 0, or 0.
201
202 • PositiveOrZeroNum in Types::Common::Numeric
203
204 An number above 0, or 0.
205
206 • Ref [parameterizable] in Types::Standard
207
208 Any reference.
209
210 • RegexpRef in Types::Standard
211
212 A regular expression.
213
214 • RoleName in Types::Standard
215
216 Any loaded package name where there is no `new` method.
217
218 • ScalarRef [parameterizable] in Types::Standard
219
220 Scalarrefs.
221
222 • SimpleStr in Types::Common::String
223
224 A string with less than 256 characters with no line breaks.
225
226 • SingleDigit in Types::Common::Numeric
227
228 A single digit number. This includes single digit negative numbers!
229
230 • Str in Types::Standard
231
232 A string.
233
234 • StrictNum in Types::Standard
235
236 A number; strict constaint.
237
238 • StringLike in Types::TypeTiny
239
240 Strings and objects overloading stringification.
241
242 • StrLength [parameterizable] in Types::Common::String
243
244 A string with length in a particular range.
245
246 • StrMatch [parameterizable] in Types::Standard
247
248 A string matching a particular regular expression.
249
250 • StrongPassword in Types::Common::String
251
252 A string at least 4 characters long and less than 256 characters
253 long with no line breaks and at least one non-alphabetic character.
254
255 • Tied [parameterizable] in Types::Standard
256
257 A reference to a tied variable.
258
259 • Tuple [parameterizable] in Types::Standard
260
261 An arrayref with constraints on its values.
262
263 • TypeTiny [has coercion] in Types::TypeTiny
264
265 Blessed objects in the Type::Tiny class.
266
267 • Undef in Types::Standard
268
269 undef.
270
271 • UpperCaseSimpleStr [has coercion] in Types::Common::String
272
273 A string less than 256 characters long with no line breaks or
274 lowercase letters.
275
276 • UpperCaseStr [has coercion] in Types::Common::String
277
278 A string with no lowercase letters.
279
280 • Value in Types::Standard
281
282 Any non-reference value, including undef.
283
285 Here's your next step:
286
287 • Type::Tiny::Manual::Policies
288
289 Policies related to Type::Tiny development.
290
292 Toby Inkster <tobyink@cpan.org>.
293
295 This software is copyright (c) 2013-2014, 2017-2021 by Toby Inkster.
296
297 This is free software; you can redistribute it and/or modify it under
298 the same terms as the Perl 5 programming language system itself.
299
301 THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
302 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
303 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
304
305
306
307perl v5.34.0 2022-01-21 Type::Tiny::Manual::AllTypes(3)