Types::TypeTiny - Online Linux Manual Page

Section : 3pm
Updated : 2021-02-24
Source : perl v5.32.1
Note : User Contributed Perl Documentation

NAMETypes::TypeTiny − type constraints used internally by Type::Tiny

STATUSThis module is covered by the Type-Tiny stability policy.

DESCRIPTIONDogfooding. This isn't a real Type::Library−based type library; that would involve too much circularity. But it exports some type constraints which, while designed for use within Type::Tiny, may be more generally useful.

Types• StringLike Accepts strings and objects overloading stringification. • HashLike[`a] Accepts hashrefs and objects overloading hashification. Since Types::TypeTiny 1.012, may be parameterized with another type constraint like HashLike[Int]. • ArrayLike[`a] Accepts arrayrefs and objects overloading arrayfication. Since Types::TypeTiny 1.012, may be parameterized with another type constraint like ArrayLike[Int]. • CodeLike Accepts coderefs and objects overloading codification. • TypeTiny Accepts blessed Type::Tiny objects. • _ForeignTypeConstraint Any reference which to_TypeTiny recognizes as something that can be coerced to a Type::Tiny object. Yes, the underscore is included.

Coercion Functionsto_TypeTiny($constraint) Promotes (or demotes if you prefer) a Moose::Meta::TypeConstraint object to a Type::Tiny object. Can also handle Validation::Class objects. Type constraints built from Validation::Class objects deliberately ignore field filters when they do constraint checking (and go to great lengths to do so); using filters for coercion only. (The behaviour of coerce if we don't do that is just too weird!) Can also handle any object providing check and get_message methods. (This includes Mouse::Meta::TypeConstraint objects.) If the object also provides has_coercion and coerce methods, these will be used too. Can also handle coderefs (but not blessed coderefs or objects overloading ​&{}). Coderefs are expected to return true iff $_ passes the constraint. If $_ fails the type constraint, they may either return false, or die with a helpful error message.

MethodsThese are implemented so that Types::TypeTiny−>meta−>get_type($foo) works, for rough compatibility with a real Type::Library type library. meta type_names get_type($name) has_type($name) coercion_names get_coercion($name) has_coercion($name) 

BUGSPlease report any bugs to <https://github.com/tobyink/p5−type−tiny/issues>.

SEE ALSOType::Tiny.

AUTHORToby Inkster <tobyink@cpan.org>.

COPYRIGHT AND LICENCEThis software is copyright (c) 2013−2014, 2017−2021 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.

DISCLAIMER OF WARRANTIESTHIS 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.
0
Johanes Gumabo
Data Size   :   13,034 byte
man-Types::TypeTiny.3pmBuild   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   1 / 1,208,779
Visitor ID   :     :  
Visitor IP   :   3.145.38.89   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|254|Types::TypeTiny.3pm|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|160|Types::TypeTiny.3pm|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|254|Types::TypeTiny.3pm|43|br══─}─══|'br══─}─══ )         (htmlprn|160|Types::TypeTiny.3pm|43|'br══─}─══ |'br══─}─══ )