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       "unique_values"
35           The list of "values" but sorted and with duplicates removed. This
36           cannot be passed to the constructor.
37
38   Overloading
39       ยท   Arrayrefification calls "values".
40

BUGS

42       Please report any bugs to
43       <http://rt.cpan.org/Dist/Display.html?Queue=Type-Tiny>.
44

SEE ALSO

46       Type::Tiny::Manual.
47
48       Type::Tiny.
49
50       Moose::Meta::TypeConstraint::Enum.
51

AUTHOR

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

DISCLAIMER OF WARRANTIES

62       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
63       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
64       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
65
66
67
68perl v5.30.1                      2020-02-12               Type::Tiny::Enum(3)
Impressum