1 package MooseX::Meta::TypeConstraint::Role::Structured;
7 MooseX::Meta::TypeConstraint::Role::Structured - Structured Type Constraints
15 our $VERSION = '0.01';
23 This class defines the following attributes.
27 This is a signature of internal contraints for the contents of the outer
38 =head2 optional_signature
40 This is a signature of internal contraints for the contents of the outer
41 contraint container. These are optional constraints.
45 has 'optional_signature' => (
48 predicate=>'has_optional_signature',
53 This class defines the following methods.
55 =head2 _normalize_args
57 Get arguments into a known state or die trying. Ideally we try to make this
58 into a HashRef so we can match it up with the L</signature> HashRef.
65 The constraint is basically validating the L</signature> against the incoming
71 modifier to make sure equals descends into the L</signature>
75 =head2 signature_equals
77 Check that the signature equals another signature.
83 John James Napiorkowski <jjnapiork@cpan.org>
87 You may distribute this code under the same terms as Perl itself.