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       <https://github.com/tobyink/p5-type-tiny/issues>.
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-2021 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.32.1                      2021-04-27       Type::Tiny::Intersection(3)
Impressum