1Type::Tiny::Manual::AllUTsyepresC(o3n)tributed Perl DocuTmyepnet:a:tTiionny::Manual::AllTypes(3)
2
3
4

NAME

6       Type::Tiny::Manual::AllTypes - alphabetical list of all type
7       constraints bundled with Type::Tiny
8

MANUAL

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
17Any in Types::Standard
18
19           Anything. Absolutely anything.
20
21ArrayLike [parameterizable] in Types::TypeTiny
22
23           Arrayrefs and objects overloading arrayfication.
24
25ArrayRef [parameterizable] in Types::Standard
26
27           Arrayrefs.
28
29Bool [has coercion] in Types::Standard
30
31           Booleans; the numbers or strings "0" and "1", the empty string, or
32           undef.
33
34ClassName in Types::Standard
35
36           Any loaded package name.
37
38CodeLike in Types::TypeTiny
39
40           Coderefs and objects overloading coderefification.
41
42CodeRef in Types::Standard
43
44           Coderefs.
45
46ConsumerOf [parameterizable] in Types::Standard
47
48           An object that DOES a particular role.
49
50CycleTuple [parameterizable] in Types::Standard
51
52           An arrayref with a repeating pattern of constraints on its values.
53
54Defined in Types::Standard
55
56           Any value other than undef.
57
58Dict [parameterizable] in Types::Standard
59
60           A hashref with constraints on each of its values.
61
62Enum [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
72FileHandle in Types::Standard
73
74           A reference where Scalar::Util::openhandle returns true, or a
75           blessed object in the IO::Handle class.
76
77GlobRef in Types::Standard
78
79           Globrefs
80
81HashLike [parameterizable] in Types::TypeTiny
82
83           Hashrefs and objects overloading hashrefification.
84
85HashRef [parameterizable] in Types::Standard
86
87           Hashrefs.
88
89HasMethods [parameterizable] in Types::Standard
90
91           An object that can do particular methods.
92
93InstanceOf [parameterizable] in Types::Standard
94
95           An object that isa particular class.
96
97Int in Types::Standard
98
99           A whole number, either positive, negative, or zero.
100
101IntRange [parameterizable] in Types::Common::Numeric
102
103           An integer within a particular numeric range.
104
105Item in Types::Standard
106
107           Any single item; effectively the same as Any.
108
109LaxNum in Types::Standard
110
111           A number; relaxed constraint that allows "inf".
112
113LowerCaseSimpleStr [has coercion] in Types::Common::String
114
115           A string less than 256 characters long with no line breaks or
116           uppercase letters.
117
118LowerCaseStr [has coercion] in Types::Common::String
119
120           A string with no uppercase letters.
121
122Map [parameterizable] in Types::Standard
123
124           A hashref with a constraint for the values and keys.
125
126Maybe [parameterizable] in Types::Standard
127
128           When parameterized, the same as its parameter, but also allows
129           undef.
130
131NegativeInt in Types::Common::Numeric
132
133           An integer below 0.
134
135NegativeNum in Types::Common::Numeric
136
137           A number below 0.
138
139NegativeOrZeroInt in Types::Common::Numeric
140
141           An integer below 0, or 0.
142
143NegativeOrZeroNum in Types::Common::Numeric
144
145           A number below 0, or 0.
146
147NonEmptySimpleStr in Types::Common::String
148
149           A string with more than 0 but less than 256 characters with no line
150           breaks.
151
152NonEmptyStr in Types::Common::String
153
154           A string with more than 0 characters.
155
156Num in Types::Standard
157
158           The same as LaxNum or StrictNum depending on environment.
159
160NumericCode [has coercion] in Types::Common::String
161
162           A string containing only digits.
163
164NumRange [parameterizable] in Types::Common::Numeric
165
166           A number within a particular numeric range.
167
168Object in Types::Standard
169
170           A blessed object.
171
172Optional [parameterizable] in Types::Standard
173
174           Used in conjunction with Dict, Tuple, or CycleTuple.
175
176OptList 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
181Overload [parameterizable] in Types::Standard
182
183           An overloaded object.
184
185Password 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
190PositiveInt in Types::Common::Numeric
191
192           An integer above 0.
193
194PositiveNum in Types::Common::Numeric
195
196           A number above 0.
197
198PositiveOrZeroInt in Types::Common::Numeric
199
200           An integer above 0, or 0.
201
202PositiveOrZeroNum in Types::Common::Numeric
203
204           An number above 0, or 0.
205
206Ref [parameterizable] in Types::Standard
207
208           Any reference.
209
210RegexpRef in Types::Standard
211
212           A regular expression.
213
214RoleName in Types::Standard
215
216           Any loaded package name where there is no `new` method.
217
218ScalarRef [parameterizable] in Types::Standard
219
220           Scalarrefs.
221
222SimpleStr in Types::Common::String
223
224           A string with less than 256 characters with no line breaks.
225
226SingleDigit in Types::Common::Numeric
227
228           A single digit number. This includes single digit negative numbers!
229
230Str in Types::Standard
231
232           A string.
233
234StrictNum in Types::Standard
235
236           A number; strict constaint.
237
238StringLike in Types::TypeTiny
239
240           Strings and objects overloading stringification.
241
242StrLength [parameterizable] in Types::Common::String
243
244           A string with length in a particular range.
245
246StrMatch [parameterizable] in Types::Standard
247
248           A string matching a particular regular expression.
249
250StrongPassword 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
255Tied [parameterizable] in Types::Standard
256
257           A reference to a tied variable.
258
259Tuple [parameterizable] in Types::Standard
260
261           An arrayref with constraints on its values.
262
263TypeTiny [has coercion] in Types::TypeTiny
264
265           Blessed objects in the Type::Tiny class.
266
267Undef in Types::Standard
268
269           undef.
270
271UpperCaseSimpleStr [has coercion] in Types::Common::String
272
273           A string less than 256 characters long with no line breaks or
274           lowercase letters.
275
276UpperCaseStr [has coercion] in Types::Common::String
277
278           A string with no lowercase letters.
279
280Value in Types::Standard
281
282           Any non-reference value, including undef.
283

NEXT STEPS

285       Here's your next step:
286
287       •   Type::Tiny::Manual::Policies
288
289           Policies related to Type::Tiny development.
290

AUTHOR

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

DISCLAIMER OF WARRANTIES

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)
Impressum