Type::Tiny::Manual::AllTypes(3) User Contributed Perl Documentation NAME Type::Tiny::Manual::AllTypes - alphabetical list of all type constraints bundled with Type::Tiny MANUAL The following is a list of type constraints bundled with Type::Tiny, with very brief descriptions. For more information, see the type library's documentation, and the test cases in "t/21-types/". GitHub link: . o Any in Types::Standard Anything. Absolutely anything. o ArrayLike [parameterizable] in Types::TypeTiny Arrayrefs and objects overloading arrayfication. o ArrayRef [parameterizable] in Types::Standard Arrayrefs. o Bool [has coercion] in Types::Standard Booleans; the numbers or strings "0" and "1", the empty string, or undef. o BoolLike in Types::TypeTiny Similar to Bool, but without coercions, and accepts objects overloading "bool". o ClassName in Types::Standard Any loaded package name. o CodeLike in Types::TypeTiny Coderefs and objects overloading coderefification. o CodeRef in Types::Standard Coderefs. o ConsumerOf [parameterizable] in Types::Standard An object that DOES a particular role. o CycleTuple [parameterizable] in Types::Standard An arrayref with a repeating pattern of constraints on its values. o Defined in Types::Standard Any value other than undef. o DelimitedStr [parameterizable] in Types::Common::String A comma-delimited or other delimited string. o Dict [parameterizable] in Types::Standard A hashref with constraints on each of its values. o Enum [parameterizable] in Types::Standard A string from an allowed set of strings. o _ForeignTypeConstraint in Types::TypeTiny A coderef or an object which Type::Tiny knows how to convert into a Type::Tiny instance. (Yes, the name of this type starts with an underscore.) o FileHandle in Types::Standard A reference where Scalar::Util::openhandle returns true, or a blessed object in the IO::Handle class. o GlobRef in Types::Standard Globrefs o HashLike [parameterizable] in Types::TypeTiny Hashrefs and objects overloading hashrefification. o HashRef [parameterizable] in Types::Standard Hashrefs. o HasMethods [parameterizable] in Types::Standard An object that can do particular methods. o InstanceOf [parameterizable] in Types::Standard An object that isa particular class. o Int in Types::Standard A whole number, either positive, negative, or zero. o IntRange [parameterizable] in Types::Common::Numeric An integer within a particular numeric range. o Item in Types::Standard Any single item; effectively the same as Any. o LaxNum in Types::Standard A number; relaxed constraint that allows "inf". o LowerCaseSimpleStr [has coercion] in Types::Common::String A string less than 256 characters long with no line breaks or uppercase letters. o LowerCaseStr [has coercion] in Types::Common::String A string with no uppercase letters. o Map [parameterizable] in Types::Standard A hashref with a constraint for the values and keys. o Maybe [parameterizable] in Types::Standard When parameterized, the same as its parameter, but also allows undef. o NegativeInt in Types::Common::Numeric An integer below 0. o NegativeNum in Types::Common::Numeric A number below 0. o NegativeOrZeroInt in Types::Common::Numeric An integer below 0, or 0. o NegativeOrZeroNum in Types::Common::Numeric A number below 0, or 0. o NonEmptySimpleStr in Types::Common::String A string with more than 0 but less than 256 characters with no line breaks. o NonEmptyStr in Types::Common::String A string with more than 0 characters. o Num in Types::Standard The same as LaxNum or StrictNum depending on environment. o NumericCode [has coercion] in Types::Common::String A string containing only digits. o NumRange [parameterizable] in Types::Common::Numeric A number within a particular numeric range. o Object in Types::Standard A blessed object. o Optional [parameterizable] in Types::Standard Used in conjunction with Dict, Tuple, or CycleTuple. o OptList in Types::Standard An arrayref of arrayrefs, where each of the inner arrayrefs are two values, the first value being a string. o Overload [parameterizable] in Types::Standard An overloaded object. o Password in Types::Common::String A string at least 4 characters long and less than 256 characters long with no line breaks. o PositiveInt in Types::Common::Numeric An integer above 0. o PositiveNum in Types::Common::Numeric A number above 0. o PositiveOrZeroInt in Types::Common::Numeric An integer above 0, or 0. o PositiveOrZeroNum in Types::Common::Numeric An number above 0, or 0. o Ref [parameterizable] in Types::Standard Any reference. o RegexpRef in Types::Standard A regular expression. o RoleName in Types::Standard Any loaded package name where there is no `new` method. o ScalarRef [parameterizable] in Types::Standard Scalarrefs. o SimpleStr in Types::Common::String A string with less than 256 characters with no line breaks. o SingleDigit in Types::Common::Numeric A single digit number. This includes single digit negative numbers! o Slurpy [parameterizable] in Types::Standard Used in conjunction with Dict or Tuple. o Str in Types::Standard A string. o StrictNum in Types::Standard A number; strict constaint. o StringLike in Types::TypeTiny Strings and objects overloading stringification. o StrLength [parameterizable] in Types::Common::String A string with length in a particular range. o StrMatch [parameterizable] in Types::Standard A string matching a particular regular expression. o StrongPassword in Types::Common::String A string at least 4 characters long and less than 256 characters long with no line breaks and at least one non-alphabetic character. o Tied [parameterizable] in Types::Standard A reference to a tied variable. o Tuple [parameterizable] in Types::Standard An arrayref with constraints on its values. o TypeTiny [has coercion] in Types::TypeTiny Blessed objects in the Type::Tiny class. o Undef in Types::Standard undef. o UpperCaseSimpleStr [has coercion] in Types::Common::String A string less than 256 characters long with no line breaks or lowercase letters. o UpperCaseStr [has coercion] in Types::Common::String A string with no lowercase letters. o Value in Types::Standard Any non-reference value, including undef. The module Types::Common incorporates all of the above. NEXT STEPS Here's your next step: o Type::Tiny::Manual::Policies Policies related to Type::Tiny development. AUTHOR Toby Inkster . COPYRIGHT AND LICENCE This software is copyright (c) 2013-2014, 2017-2023 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 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. perl v5.38.2 2024-03-13 Type::Tiny::Manual::AllTypes(3)