DOKK / manpages / debian 11 / libmouse-perl / Mouse::Meta::TypeConstraint.3pm.en
Mouse::Meta::TypeConstraint(3pm) User Contributed Perl Documentation Mouse::Meta::TypeConstraint(3pm)

Mouse::Meta::TypeConstraint - The Mouse Type Constraint metaclass

This document describes Mouse version v2.5.10

This class represents a type constraint, including built-in type constraints, union type constraints, parameterizable/ parameterized type constraints, as well as custom type constraints

"Mouse::Meta::TypeConstraint->new(%options)"
"$constraint->name"
"$constraint->parent"
"$constraint->constraint"
"$constraint->has_coercion"
"$constraint->message"
"$constraint->is_a_type_of($name or $object)"
"$constraint->coerce($value)"
"$constraint->check($value)"
"$constraint->assert_valid($value)"
"$constraint->get_message($value)"
"$constraint->create_child_type(%options)"

Moose::Meta::TypeConstraint

2020-11-09 perl v5.32.0