aboutsummaryrefslogtreecommitdiff
path: root/devel/p5-MooseX-Types-Structured/pkg-descr
blob: 6456ca1009146bbbebd348d676537466d98fb4de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
A structured type constraint is a standard container Moose type
constraint, such as an ArrayRef or HashRef, which has been enhanced to
allow you to explicitly name all the allowed type constraints inside the
structure.  The generalized form is:

	TypeConstraint[@TypeParameters or %TypeParameters]

Where 'TypeParameters' is an array reference or hash references of
Moose::Meta::TypeConstraint objects.

This type library enables structured type constraints.  It is built on
top of the MooseX::Types library system, so you should review the
documentation for that if you are not familiar with it.

WWW: https://metacpan.org/release/MooseX-Types-Structured