1MouseX::Types::Common(3U)ser Contributed Perl DocumentatiMoonuseX::Types::Common(3)
2
3
4
6 MouseX::Types::Common - A set of commonly-used type constraints
7
9 use MouseX::Types::Common::String qw/SimpleStr/;
10 has short_str => (is => 'rw', isa => SimpleStr);
11
12 ...
13 #this will fail
14 $object->short_str("string\nwith\nbreaks");
15
16
17
18 use MouseX::Types::Common::Numeric qw/PositiveInt/;
19 has count => (is => 'rw', isa => PositiveInt);
20
21 ...
22 #this will fail
23 $object->count(-33);
24
26 A set of commonly-used type constraints that do not ship with Mouse by
27 default.
28
29 This module is based on "MooseX::Types::Common".
30
32 • MouseX::Types::Common::String
33
34 • MouseX::Types::Common::Numeric
35
36 • MouseX::Types
37
38 • Mouse::Util::TypeConstraints
39
40 • MooseX::Types::Common
41
43 This distribution was extracted from the Reaction code base by
44 Guillermo Roditi (groditi).
45
46 The original authors of this library are:
47
48 • Matt S. Trout
49
50 • K. J. Cheetham
51
52 • Guillermo Roditi
53
55 Goro Fuji (gfx) <gfuji@cpan.org>
56
58 This library is free software, you can redistribute it and/or modify it
59 under the same terms as Perl itself.
60
61
62
63perl v5.36.0 2023-01-20 MouseX::Types::Common(3)