NAME
CompiledLib - type constraint library
TYPES
This type constraint library is even more basic that Type::Tiny. Exported types may be combined using Foo | Bar but parameterized type constraints like Foo[Bar] are not supported.
Int
Based on Int in Types::Standard.
The Int constant returns a blessed type constraint object. is_Int($value) checks a value against the type and returns a boolean. assert_Int($value) checks a value against the type and throws an error.
To import all of these functions:
use CompiledLib qw( :Int );
Str
Based on Str in Types::Standard.
The Str constant returns a blessed type constraint object. is_Str($value) checks a value against the type and returns a boolean. assert_Str($value) checks a value against the type and throws an error.
To import all of these functions:
use CompiledLib qw( :Str );
Undef
Based on Undef in Types::Standard.
The Undef constant returns a blessed type constraint object. is_Undef($value) checks a value against the type and returns a boolean. assert_Undef($value) checks a value against the type and throws an error.
To import all of these functions:
use CompiledLib qw( :Undef );