1MooX::TypeTiny(3)     User Contributed Perl Documentation    MooX::TypeTiny(3)
2
3
4

NAME

6       MooX::TypeTiny - Optimized type checks for Moo + Type::Tiny
7

SYNOPSIS

9         package Some::Moo::Class;
10         use Moo;
11         use MooX::TypeTiny;
12         use Types::Standard qw(Int);
13
14         has attr1 => (is => 'ro', isa => Int);
15

DESCRIPTION

17       This module optimizes Moo type checks when used with Type::Tiny to
18       perform better.  It will automatically apply to isa checks and
19       coercions that use Type::Tiny.  Non-Type::Tiny isa checks will work as
20       normal.
21
22       This is done by inlining the type check in a more optimal manner that
23       is specific to Type::Tiny rather than the general mechanism Moo usually
24       uses.
25
26       With this module, setters with type checks should be as fast as an
27       equivalent check in Moose.
28
29       It is hoped that eventually this type inlining will be done
30       automatically, making this module unnecessary.
31

AUTHOR

33       haarg - Graham Knop (cpan:HAARG) <haarg@haarg.org>
34

CONTRIBUTORS

36       None so far.
37
39       Copyright (c) 2015 the MooX::TypeTiny "AUTHOR" and "CONTRIBUTORS" as
40       listed above.
41

LICENSE

43       This library is free software and may be distributed under the same
44       terms as perl itself. See <http://dev.perl.org/licenses/>.
45
46
47
48perl v5.38.0                      2023-07-20                 MooX::TypeTiny(3)
Impressum