1Specio::Constraint::IntUesresrecCtoinotnr(i3b)uted PerlSDpoeccuimoe:n:tCaotnisotnraint::Intersection(3)
2
3
4

NAME

6       Specio::Constraint::Intersection - A class for intersection constraints
7

VERSION

9       version 0.46
10

SYNOPSIS

12           my $type = Specio::Constraint::Untion->new(...);
13

DESCRIPTION

15       This is a specialized type constraint class for intersections, which
16       will allow a value which matches each one of several distinct types.
17

API

19       This class provides all of the same methods as
20       Specio::Constraint::Simple, with a few differences:
21
22   Specio::Constraint::Intersection->new( ... )
23       The "parent" parameter is ignored if it passed, as it is always "undef"
24
25       The "inline_generator" and "constraint" parameters are also ignored.
26       This class provides its own default inline generator subroutine
27       reference.
28
29       Finally, this class requires an additional parameter, "of". This must
30       be an arrayref of type objects.
31
32   $union->of
33       Returns an array reference of the individual types which makes up this
34       intersection.
35

ROLES

37       This class does the Specio::Constraint::Role::Interface and
38       Specio::Role::Inlinable roles.
39

SUPPORT

41       Bugs may be submitted at
42       <https://github.com/houseabsolute/Specio/issues>.
43
44       I am also usually active on IRC as 'autarch' on "irc://irc.perl.org".
45

SOURCE

47       The source code repository for Specio can be found at
48       <https://github.com/houseabsolute/Specio>.
49

AUTHOR

51       Dave Rolsky <autarch@urth.org>
52
54       This software is Copyright (c) 2012 - 2020 by Dave Rolsky.
55
56       This is free software, licensed under:
57
58         The Artistic License 2.0 (GPL Compatible)
59
60       The full text of the license can be found in the LICENSE file included
61       with this distribution.
62
63
64
65perl v5.32.0                      2020-07-28Specio::Constraint::Intersection(3)
Impressum