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

NEXT STEPS

279       Here's your next step:
280
281       ·   Type::Tiny::Manual::Policies
282
283           Policies related to Type::Tiny development.
284

AUTHOR

286       Toby Inkster <tobyink@cpan.org>.
287
289       This software is copyright (c) 2013-2014, 2017-2020 by Toby Inkster.
290
291       This is free software; you can redistribute it and/or modify it under
292       the same terms as the Perl 5 programming language system itself.
293

DISCLAIMER OF WARRANTIES

295       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
296       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
297       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
298
299
300
301perl v5.30.1                      2020-02-12   Type::Tiny::Manual::AllTypes(3)
Impressum