Type::C...n::Union(3)
π NAME π
Type::Coercion::Union β bestie, it's literally a whole set of coercions that all point at a union type constraint π¦
So real quick, this page? It's Type::C...n::Union(3) from the User Contributed Perl Documentation, and it's about to be your new favorite thing. Sit down, hydrate, let's go π
β¨ STATUS β¨
This module is covered by the Type-Tiny stability policy. So likeβ¦ it's got rules, it's got structure, it's giving stable. π
πΈ DESCRIPTION πΈ
Okay so the tea β: this package inherits from Type::Coercion, and if you wanna know most of the deets you should go read that page. That's where the main documentation lives, no cap.
But here's what's different about this one, and it's only two things, so don't stress:
- The
add_type_coercionsmethod always throws an exception. Like, every single time. Not a vibe, not a maybe β it's a hard no. π - The
type_coercion_mapgets automatically populated from the child constraints of the union type constraint. It just... happens. No manual labor required. Iconic behavior fr fr β¨
π BUGS π
Found a bug? Bestie please tell someone π Report it here:
That's the spot. That's the place. Go there. π«Ά
π SEE ALSO π
Type::Coercionβ the parent, the blueprint, the main character it inherited from.Moose::Meta::TypeCoercion::Unionβ a whole other union coercion situation, if you're curious.
π AUTHOR π
Toby Inkster <tobyink@cpan.org>. A legend, truly. π
π COPYRIGHT AND LICENCE π
This software is copyright (c) 2013-2014, 2017-2025 by Toby Inkster.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. So yes, go off, use it, remix it, slay. π
π DISCLAIMER OF WARRANTIES π
THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
Translation: no promises, no guarantees, no warranty fairy godmother. You get what you get, and that's the whole deal. π§
and that's the page, bestie!! this whole thing is documented for perl v5.42.0, dated 2026-01-17, and it lives in the Type::C...n::Union(3) section of the User Contributed Perl Documentation collection. mwah πβ¨
π¦ where this page comes from
- fedora 44: perl-Type-Tiny 2.010001-2.fc44 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms