Sponsoring The Perl Toolchain Summit 2025: Help make this important event another success Learn more

NAME

Function::Interface::Types - interface types for Type::Tiny

SYNOPSIS

my $type = ImplOf['IFoo'];
my $foo = Foo->new; # implements of 'IFoo'
$type->check($foo); # ok

DESCRIPTION

Function::Interface::Types provides type constraints of interface package. The following types are available.

ImplOf[`a]

ImplOf['IFoo', 'IBar'] allows objects or packages where implements of interface package 'IFoo' and 'IBar' both return true.

Given no parameters, just equivalent to Object or ClassName.

SEE ALSO

Function::Interface