Mouse:...straint(3pm)
πβ¨ Mouse:...straint(3pm) β¨π
okay bestie, quick vibe check: this page is from the User Contributed Perl Documentation, and it's giving βthe Mouse type constraint metaclass has entered the chat.β We're talking about Mouse::Meta::TypeConstraint, the actual class behind type constraints. No cap.
π NAME π
Mouse::Meta::TypeConstraint β The Mouse Type Constraint metaclass. That's the whole name, periodt.
πΈ VERSION πΈ
This document describes Mouse version v2.6.2. Slay, documented and versioned.
π¦ 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. So yes: built-ins, unions, parameterizable/parameterized ones, and your own custom little guys are all in this class's group chat. Iconic.
π METHODS π
The whole method lineup, bestie β no skipping, no βI'll read it laterβ:
Mouse::Meta::TypeConstraint->new(%options)β the constructor call, with%optionsdoing its thing π$constraint->nameβ thenamemethod, right here$constraint->parentβ theparentmethod, present and accounted for$constraint->constraintβ theconstraintmethod, yep$constraint->has_coercionβ thehas_coercionmethod, on the list$constraint->messageβ themessagemethod, not skipped$constraint->is_a_type_of($name or $object)β theis_a_type_ofcall with$name or $object$constraint->coerce($value)β thecoercecall with$value$constraint->check($value)β thecheckcall with$value$constraint->assert_valid($value)β theassert_validcall with$value$constraint->get_message($value)β theget_messagecall with$value$constraint->create_child_type(%options)β thecreate_child_typecall with%options
π SEE ALSO π
Moose::Meta::TypeConstraintβ the SEE ALSO bestie, exactly as listed. Go peek if you want.
mwah π this page is your Mouse:...straint(3pm) moment, coming from perl v5.42.2, dated 2026-04-21. Bye bestie, go slay those type constraints π«Άβ¨
π¦ where this page comes from
- alpine 3.24: perl-mouse-doc 2.6.2-r0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms