The C<$options> is a hash reference that will be passed to the
L<Moose::Meta::TypeConstraint::Role> constructor (as a hash).
+=item B<create_enum_type_constraint($name, $values)>
+
+Given a enum name this function will create a new
+L<Moose::Meta::TypeConstraint::Enum> object for that enum name.
+
=item B<find_or_parse_type_constraint($type_name)>
Given a type name, this first attempts to find a matching constraint
qw( check_metaclass_compatibility
construct_instance
create_error
- create_immutable_transformer
raise_error
)
],
super
with )
],
+ 'Moose::Meta::TypeCoercion' => ['compile_type_coercion'],
'Moose::Meta::TypeCoercion::Union' => ['compile_type_coercion'],
'Moose::Meta::TypeConstraint' => [ 'compile_type_constraint', 'union' ],
'Moose::Meta::TypeConstraint::Class' =>
[qw( equals is_a_type_of is_a_subtype_of )],
+ 'Moose::Meta::TypeConstraint::Enum' =>
+ [qw( constraint equals )],
'Moose::Meta::TypeConstraint::Parameterizable' => ['.+'],
'Moose::Meta::TypeConstraint::Parameterized' => ['.+'],
+ 'Moose::Meta::TypeConstraint::Role' =>
+ [qw( equals is_a_type_of )],
'Moose::Meta::TypeConstraint::Union' => ['compile_type_constraint'],
'Moose::Util' => ['add_method_modifier'],
+ 'Moose::Util::TypeConstraints' => ['find_or_create_type_constraint'],
);
for my $module ( sort @modules ) {