1Specio::Constraint::StrUuscetrurCeodn(t3r)ibuted Perl DoScpuemceinot:a:tCioonnstraint::Structured(3)
2
3
4

NAME

6       Specio::Constraint::Structured - A class which represents structured
7       constraints
8

VERSION

10       version 0.48
11

SYNOPSIS

13           my $tuple = t('Tuple');
14
15           my $tuple_of_str_int = $tuple->parameterize( of => [ t('Str'), t('Int') ] );
16
17           my $parent = $tuple_of_str_int->parent; # returns Tuple
18           my $parameters = $arrayref_of_int->parameters; # returns { of => [ t('Str'), t('Int') ] }
19

DESCRIPTION

21       This class implements the API for structured types.
22

API

24       This class implements the same API as Specio::Constraint::Simple, with
25       a few additions.
26
27   Specio::Constraint::Structured->new(...)
28       This class's constructor accepts two additional parameters:
29
30       •   parent
31
32           This should be the Specio::Constraint::Structurable object from
33           which this object was created.
34
35           This parameter is required.
36
37       •   parameters
38
39           This is the hashref of parameters for the structured type. These
40           are the parameters returned by the "Structurable" type's
41           "parameterization_args_builder". The exact form of this hashref
42           will vary for each structured type.
43
44           This parameter is required.
45
46   $type->parameters
47       Returns the hashref that was passed to the constructor.
48

SUPPORT

50       Bugs may be submitted at
51       <https://github.com/houseabsolute/Specio/issues>.
52

SOURCE

54       The source code repository for Specio can be found at
55       <https://github.com/houseabsolute/Specio>.
56

AUTHOR

58       Dave Rolsky <autarch@urth.org>
59
61       This software is Copyright (c) 2012 - 2022 by Dave Rolsky.
62
63       This is free software, licensed under:
64
65         The Artistic License 2.0 (GPL Compatible)
66
67       The full text of the license can be found in the LICENSE file included
68       with this distribution.
69
70
71
72perl v5.36.0                      2023-01-20 Specio::Constraint::Structured(3)
Impressum