NAME
Type::Tiny::XS - provides an XS boost for some of Type::Tiny's built-in type constraints
SYNOPSIS
use Types::Standard qw(Int);
DESCRIPTION
Current releases of Type::Tiny do not make use of Type::Tiny::XS. This distribution is just an experimental space for making stuff faster.
Only the following two functions should be considered part of the supported API:
Type::Tiny::XS::get_coderef_for($type)
-
Given a supported type constraint name, such as
"Int"
, returns a coderef that can be used to validate a parameter against this constraint. Type::Tiny::XS::get_subname_for($type)
-
Like
get_coderef_for
but returns the name of such a sub as a string. Type::Tiny::XS::is_known($coderef)
-
Returns true if the coderef was provided by Type::Tiny::XS.
BUGS
Please report any bugs to http://rt.cpan.org/Dist/Display.html?Queue=Type-Tiny-XS.
SEE ALSO
AUTHOR
Toby Inkster <tobyink@cpan.org> forked all this from Mouse::Util::TypeConstraints.
COPYRIGHT AND LICENCE
This software is copyright (c) 2014 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.