logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

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

Methods

"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)"

Name

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

See Also

Moose::Meta::TypeConstraint perl v5.40.0 2024-10-20 Mouse::Meta::TypeConstraint(3pm)

Version

This document describes Mouse version v2.5.11

See Also