X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=lib%2FMouse%2FUtil%2FTypeConstraints.pm;h=dcad15c616198006c9e34ef639d1ee4fed231262;hp=dbd639e0281ce5ab165b13501fabaa6b48e0535f;hb=1820fffecb0bd1da64edc16ecde534178b841d14;hpb=284ca75b14da9b2685a78b7a0d4228512c8575c6 diff --git a/lib/Mouse/Util/TypeConstraints.pm b/lib/Mouse/Util/TypeConstraints.pm index dbd639e..dcad15c 100644 --- a/lib/Mouse/Util/TypeConstraints.pm +++ b/lib/Mouse/Util/TypeConstraints.pm @@ -582,21 +582,31 @@ Returns the simple type constraints that Mouse understands. =over 4 -=item B as 'Parent' => where { } ...> +=item C<< subtype 'Name' => as 'Parent' => where { } ... -> Mouse::Meta::TypeConstraint >> -=item B where { } ...> +=item C<< subtype as 'Parent' => where { } ... -> Mouse::Meta::TypeConstraint >> -=item B +=item C<< class_type ($class, ?$options) -> Mouse::Meta::TypeConstraint >> -=item B +=item C<< role_type ($role, ?$options) -> Mouse::Meta::TypeConstraint >> -=item B +=item C<< enum (\@values) -> Mouse::Meta::TypeConstraint >> + +=back + +=over 4 + +=item C<< find_type_constraint(Type) -> Mouse::Meta::TypeConstraint >> =back =head1 THANKS -Much of this documentation was taken from L +Much of this documentation was taken from C + +=head1 SEE ALSO + +L =cut