1Type::Tiny::IntersectioUns(e3r)Contributed Perl DocumentTaytpieo:n:Tiny::Intersection(3)
2
3
4

NAME

6       Type::Tiny::Intersection - intersection type constraints
7

STATUS

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

DESCRIPTION

12       Intersection 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       "type_constraints"
19           Arrayref of type constraints.
20
21           When passed to the constructor, if any of the type constraints in
22           the intersection is itself an intersection type constraint, this is
23           "exploded" into the new intersection.
24
25       "constraint"
26           Unlike Type::Tiny, you cannot pass a constraint coderef to the
27           constructor.  Instead rely on the default.
28
29       "inlined"
30           Unlike Type::Tiny, you cannot pass an inlining coderef to the
31           constructor.  Instead rely on the default.
32
33       "parent"
34           Unlike Type::Tiny, you cannot pass an inlining coderef to the
35           constructor.  A parent will instead be automatically calculated.
36
37           (Technically any of the types in the intersection could be treated
38           as a parent type; we choose the first arbitrarily.)
39
40   Methods
41       "stringifies_to($constraint)"
42           See Type::Tiny::ConstrainedObject.
43
44       "numifies_to($constraint)"
45           See Type::Tiny::ConstrainedObject.
46
47       "with_attribute_values($attr1 => $constraint1, ...)"
48           See Type::Tiny::ConstrainedObject.
49
50   Overloading
51       ยท   Arrayrefification calls "type_constraints".
52

BUGS

54       Please report any bugs to
55       <http://rt.cpan.org/Dist/Display.html?Queue=Type-Tiny>.
56

SEE ALSO

58       Type::Tiny::Manual.
59
60       Type::Tiny.
61
62       MooseX::Meta::TypeConstraint::Intersection.
63

AUTHOR

65       Toby Inkster <tobyink@cpan.org>.
66
68       This software is copyright (c) 2013-2014, 2017-2020 by Toby Inkster.
69
70       This is free software; you can redistribute it and/or modify it under
71       the same terms as the Perl 5 programming language system itself.
72

DISCLAIMER OF WARRANTIES

74       THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
75       WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
76       MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
77
78
79
80perl v5.30.1                      2020-02-12       Type::Tiny::Intersection(3)
Impressum