NAME
Types::TypeTiny - type constraints used internally by Type::Tiny
DESCRIPTION
Dogfooding.
This isn't a real Type::Library-based type library; that would involve too much circularity. But it exports some type constraint "constants":
Types
StringLike
HashLike
CodeLike
TypeTiny
Coercion Functions
to_TypeTiny($constraint)
-
Promotes (or "demotes" if you prefer) a Moose/Mouse::Meta::TypeConstraint object to a Type::Tiny object.
Can also handle Validation::Class objects. Type constraints built from Validation::Class objects deliberately ignore field filters when they do constraint checking (and go to great lengths to do so); using filters for coercion only. (The behaviour of
coerce
if we don't do that is just too weird!)
BUGS
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Type-Tiny.
SEE ALSO
AUTHOR
Toby Inkster <tobyink@cpan.org>.
COPYRIGHT AND LICENCE
This software is copyright (c) 2013 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
DISCLAIMER OF WARRANTIES
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.