1Type::Tiny::IntersectioUns(e3r)Contributed Perl DocumentTaytpieo:n:Tiny::Intersection(3)
2
3
4
6 Type::Tiny::Intersection - intersection type constraints
7
9 This module is covered by the Type-Tiny stability policy.
10
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 Overloading
41 ยท Arrayrefification calls "type_constraints".
42
44 Please report any bugs to
45 <http://rt.cpan.org/Dist/Display.html?Queue=Type-Tiny>.
46
48 Type::Tiny::Manual.
49
50 Type::Tiny.
51
52 MooseX::Meta::TypeConstraint::Intersection.
53
55 Toby Inkster <tobyink@cpan.org>.
56
58 This software is copyright (c) 2013-2014, 2017-2019 by Toby Inkster.
59
60 This is free software; you can redistribute it and/or modify it under
61 the same terms as the Perl 5 programming language system itself.
62
64 THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
65 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
66 MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
67
68
69
70perl v5.28.1 2019-01-08 Type::Tiny::Intersection(3)