Search results for "module:Type::Tiny"
Type::Tiny - tiny, yet Moo(se)-compatible type constraint
This documents the internals of the Type::Tiny class. Type::Tiny::Manual is a better starting place if you're new. Type::Tiny is a small class for creating Moose-like type constraint objects which are compatible with Moo, Moose and Mouse. use Scalar:...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::Tiny::Eq - type constraint for single string equality
This package inherits from Type::Tiny; see that for most documentation. Major differences are listed below: Attributes "value" Allowable value string. Non-string values (e.g. objects with overloading) will be stringified in the constructor....
KFLY/Types-Equal-0.02 - 14 Aug 2023 03:28:17 UTC
Type::Tiny::XS - provides an XS boost for some of Type::Tiny's built-in type constraints
This module is optionally used by Type::Tiny 0.045_03 and above to provide faster, C-based implementations of some type constraints. (This package has only core dependencies, and does not depend on Type::Tiny, so other data validation frameworks migh...
TOBYINK/Type-Tiny-XS-0.025 - 19 Oct 2022 17:25:57 UTC
Type::Tiny::Equ - type constraint for single string equality with undefined
This package inherits from Type::Tiny; see that for most documentation. Major differences are listed below: Attributes "value" Allowable value string or undefined value. Non-string values (e.g. objects with overloading) will be stringified in the con...
KFLY/Types-Equal-0.02 - 14 Aug 2023 03:28:17 UTC
Type::Tiny::Duck - type constraints based on the "can" method
Type constraints of the general form "{ $_->can("method") }". The name refers to the saying, "If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck". Duck typing can be a more flexible way of testing objects t...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::Tiny::Enum - string enum type constraints
Enum type constraints. This package inherits from Type::Tiny; see that for most documentation. Major differences are listed below: Constructors The "new" constructor from Type::Tiny still works, of course. But there is also: "new_union( type_constrai...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::Tiny::Role - type constraints based on the "DOES" method
Type constraints of the general form "{ $_->DOES("Some::Role") }". This package inherits from Type::Tiny; see that for most documentation. Major differences are listed below: Attributes "role" The role for the constraint. Note that this package doesn...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Hessian::Tiny::Type - Hessian Types & utility routines
DUL/Hessian-Tiny-0.12
-
09 Apr 2010 15:00:34 UTC
Type::Tiny::Union - union type constraints
Union type constraints. This package inherits from Type::Tiny; see that for most documentation. Major differences are listed below: Constructor The "new" constructor from Type::Tiny still works, of course. But there is also: "new_by_overload(%attribu...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::Tiny::NumEq - type constraint for single number equality
This package inherits from Type::Tiny; see that for most documentation. Major differences are listed below: Attributes "value" Allowable value number. Non-number values (e.g. objects with overloading) will be stringified in the constructor....
KFLY/Types-Equal-0.02 - 14 Aug 2023 03:28:17 UTC
Type::Tiny::Class - type constraints based on the "isa" method
Type constraints of the general form "{ $_->isa("Some::Class") }". This package inherits from Type::Tiny; see that for most documentation. Major differences are listed below: Constructor "new" When the constructor is called on an *instance* of Type::...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::Tiny::NumEqu - type constraint for single number equality with undefined
This package inherits from Type::Tiny; see that for most documentation. Major differences are listed below: Attributes "value" Allowable value number or undefined value. Non-number values (e.g. objects with overloading) will be stringified in the con...
KFLY/Types-Equal-0.02 - 14 Aug 2023 03:28:17 UTC
Type::Tiny::Bitfield - bitfield/bitflag type constraints
Bitfield type constraints. This package inherits from Type::Tiny; see that for most documentation. Major differences are listed below: Attributes "values" Hashref of bits allowed in the bitfield. Keys must be UPPER_SNAKE_CASE strings. Values must be ...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::Tiny::XS::Util - support functions for Type::Tiny::XS
This module provides no supported functions....
TOBYINK/Type-Tiny-XS-0.025 - 19 Oct 2022 17:25:57 UTC
Type::Tiny::Signatures - Type::Tiny Method/Function Signatures
This module uses Function::Parameters to extend Perl with keywords that let you define methods and functions with parameter lists which can be validated using Type::Tiny type constraints. The type constraints can be provided by the Type::Tiny standar...
AWNCORP/Type-Tiny-Signatures-0.08 - 28 Dec 2018 06:04:50 UTC
Type::Tiny::Intersection - intersection type constraints
Intersection type constraints. Intersection type constraints are not often very useful. Consider the intersection of HashRef and ArrayRef. A value will only pass if it is both a hashref and an arrayref. Given that neither of those type constraints ac...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::Tiny::ConstrainedObject - shared behavour for Type::Tiny::Class, etc
Methods The following methods exist for Type::Tiny::Class, Type::Tiny::Role, Type::Tiny::Duck, and any type constraints that inherit from "Object" or "Overload" in Types::Standard. These methods will also work for Type::Tiny::Intersection if at least...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::Utils - utility functions to make defining and using type constraints a little easier
This module provides utility functions to make defining and using type constraints a little easier. Type declaration functions Many of the following are similar to the similarly named functions described in Moose::Util::TypeConstraints. "declare $nam...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::Params - sub signature validation using Type::Tiny type constraints and coercions
This documents the details of the Type::Params package. Type::Tiny::Manual is a better starting place if you're new. Type::Params uses Type::Tiny constraints to validate the parameters to a sub. It takes the slightly unorthodox approach of separating...
TOBYINK/Type-Tiny-2.004000 - 05 Apr 2023 09:28:11 UTC
Type::TinyX::Facets - Easily create a facet parameterized Type::Tiny type
Type::TinyX::Facets make it easy to create parameterized types with facets. "Type::Tiny" allows definition of types which can accept parameters: use Types::Standard -types; my $t1 = Array[Int]; my $t2 = Tuple[Int, HashRef]; This defines $t1 as an arr...
DJERIUS/Type-TinyX-Facets-1.3 - 26 Dec 2022 19:31:27 UTC