{
    "content": [
        {
            "type": "text",
            "text": "# Type::Tiny::Union (perldoc)\n\n## NAME\n\nType::Tiny::Union - union type constraints\n\n## DESCRIPTION\n\nUnion type constraints.\n\n## Sections\n\n- **NAME**\n- **STATUS**\n- **DESCRIPTION** (3 subsections)\n- **BUGS**\n- **SEE ALSO**\n- **AUTHOR**\n- **COPYRIGHT AND LICENCE**\n- **DISCLAIMER OF WARRANTIES**\n\nUse structuredContent.sections for detailed options, examples, and full documentation.\n"
        }
    ],
    "structuredContent": {
        "command": "Type::Tiny::Union",
        "section": "",
        "mode": "perldoc",
        "summary": "Type::Tiny::Union - union type constraints",
        "synopsis": null,
        "tldr_summary": null,
        "tldr_examples": [],
        "tldr_source": null,
        "flags": [],
        "examples": [],
        "see_also": [],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "STATUS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "DESCRIPTION",
                "lines": 5,
                "subsections": [
                    {
                        "name": "Attributes",
                        "lines": 24
                    },
                    {
                        "name": "Methods",
                        "lines": 12
                    },
                    {
                        "name": "Overloading",
                        "lines": 2
                    }
                ]
            },
            {
                "name": "BUGS",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 4,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "COPYRIGHT AND LICENCE",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "DISCLAIMER OF WARRANTIES",
                "lines": 4,
                "subsections": []
            }
        ],
        "sections": {
            "NAME": {
                "content": "Type::Tiny::Union - union type constraints\n",
                "subsections": []
            },
            "STATUS": {
                "content": "This module is covered by the Type-Tiny stability policy.\n",
                "subsections": []
            },
            "DESCRIPTION": {
                "content": "Union type constraints.\n\nThis package inherits from Type::Tiny; see that for most documentation. Major differences are\nlisted below:\n",
                "subsections": [
                    {
                        "name": "Attributes",
                        "content": "\"typeconstraints\"\nArrayref of type constraints.\n\nWhen passed to the constructor, if any of the type constraints in the union is itself a\nunion type constraint, this is \"exploded\" into the new union.\n\n\"constraint\"\nUnlike Type::Tiny, you *cannot* pass a constraint coderef to the constructor. Instead rely\non the default.\n\n\"inlined\"\nUnlike Type::Tiny, you *cannot* pass an inlining coderef to the constructor. Instead rely on\nthe default.\n\n\"parent\"\nUnlike Type::Tiny, you *cannot* pass an inlining coderef to the constructor. A parent will\ninstead be automatically calculated.\n\n\"coercion\"\nYou probably do not pass this to the constructor. (It's not currently disallowed, as there\nmay be a use for it that I haven't thought of.)\n\nThe auto-generated default will be a Type::Coercion::Union object.\n"
                    },
                    {
                        "name": "Methods",
                        "content": "\"findtypefor($value)\"\nReturns the first individual type constraint in the union which $value passes.\n\n\"stringifiesto($constraint)\"\nSee Type::Tiny::ConstrainedObject.\n\n\"numifiesto($constraint)\"\nSee Type::Tiny::ConstrainedObject.\n\n\"withattributevalues($attr1 => $constraint1, ...)\"\nSee Type::Tiny::ConstrainedObject.\n"
                    },
                    {
                        "name": "Overloading",
                        "content": "*   Arrayrefification calls \"typeconstraints\".\n"
                    }
                ]
            },
            "BUGS": {
                "content": "Please report any bugs to <https://github.com/tobyink/p5-type-tiny/issues>.\n",
                "subsections": []
            },
            "SEE ALSO": {
                "content": "Type::Tiny::Manual.\n\nType::Tiny.\n",
                "subsections": []
            },
            "AUTHOR": {
                "content": "Toby Inkster <tobyink@cpan.org>.\n",
                "subsections": []
            },
            "COPYRIGHT AND LICENCE": {
                "content": "This software is copyright (c) 2013-2014, 2017-2021 by Toby Inkster.\n\nThis is free software; you can redistribute it and/or modify it under the same terms as the Perl\n5 programming language system itself.\n",
                "subsections": []
            },
            "DISCLAIMER OF WARRANTIES": {
                "content": "THIS PACKAGE IS PROVIDED \"AS IS\" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,\nWITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.\n",
                "subsections": []
            }
        }
    }
}