1Type::Tiny::Enum(3)   User Contributed Perl Documentation  Type::Tiny::Enum(3)
2
3
4

NAME

6       Type::Tiny::Enum - string enum type constraints
7

STATUS

9       This module is covered by the Type-Tiny stability policy.
10

DESCRIPTION

12       Enum type constraints.
13
14       This package inherits from Type::Tiny; see that for most documentation.
15       Major differences are listed below:
16
17   Attributes
18       "values"
19           Arrayref of allowable value strings. Non-string values (e.g.
20           objects with overloading) will be stringified in the constructor.
21
22       "constraint"
23           Unlike Type::Tiny, you cannot pass a constraint coderef to the
24           constructor.  Instead rely on the default.
25
26       "inlined"
27           Unlike Type::Tiny, you cannot pass an inlining coderef to the
28           constructor.  Instead rely on the default.
29
30       "parent"
31           Parent is always Types::Standard::Str, and cannot be passed to the
32           constructor.
33
34   Overloading
35       ยท   Arrayrefification calls "values".
36

BUGS

38       Please report any bugs to
39       <http://rt.cpan.org/Dist/Display.html?Queue=Type-Tiny>.
40

SEE ALSO

42       Type::Tiny::Manual.
43
44       Type::Tiny.
45
46       Moose::Meta::TypeConstraint::Enum.
47

AUTHOR

49       Toby Inkster <tobyink@cpan.org>.
50
52       This software is copyright (c) 2013-2014, 2017-2019 by Toby Inkster.
53
54       This is free software; you can redistribute it and/or modify it under
55       the same terms as the Perl 5 programming language system itself.
56

DISCLAIMER OF WARRANTIES

58       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
59       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
60       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
61
62
63
64perl v5.30.0                      2019-07-26               Type::Tiny::Enum(3)
Impressum