Declar...Library(3pm)

πŸ“¦
version 0.03 Β· 5 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ NAME ✨

okay so bestie, welcome to Declare::Constraints::Simple::Library β€” it's the Constraint Library Bundle πŸ’– (yes that's the whole vibe, it's a perl 3pm manual page, User Contributed Perl Documentation, iykyk)


🌸 DESCRIPTION 🌸

so basically this module is the bundle of all the default libraries, and it also works as a map and/or reference of said ones. like a lil directory of where everything lives πŸ’…


πŸŽ€ LIBRARIES πŸŽ€

here's the whole roster, no cap, every single one:

  • Declare::Constraints::Simple::Library::General β€” general constraints and constraint-like elements that affect the whole framework.
    • Provides: Message, Scope, SetResult, IsValid, ReturnTrue, ReturnFalse
  • Declare::Constraints::Simple::Library::Scalar β€” constraints for scalar value validation.
    • Provides: Matches, IsDefined, HasLength, IsOneOf, IsTrue, IsEq
  • Declare::Constraints::Simple::Library::Numerical β€” these validate values by their numerical properties.
    • Provides: IsNumber, IsInt
  • Declare::Constraints::Simple::Library::OO β€” for validation of values in an object oriented manner.
    • Provides: IsA, IsClass, IsObject, HasMethods
  • Declare::Constraints::Simple::Library::Referencial β€” these can validate properties by their reference types.
    • Provides: IsRefType, IsScalarRef, IsArrayRef, IsHashRef, IsCodeRef, IsRegex
  • Declare::Constraints::Simple::Library::Array β€” these constraints deal with array references and their contents.
    • Provides: HasArraySize, OnArrayElements, OnEvenElements, OnOddElements
  • Declare::Constraints::Simple::Library::Hash β€” all constraints appliable to hash references as well as their keys and values.
    • Provides: HasAllKeys, OnHashKeys
  • Declare::Constraints::Simple::Library::Operators β€” operators can be used in any place a constraint can be used, as their implementations are similar.
    • Provides: And, Or, XOr, Not, CaseValid

πŸ” SEE ALSO πŸ”

  • Declare::Constraints::Simple β€” the main character 🫢

πŸ‘‘ AUTHOR πŸ‘‘

Robert 'phaylon' Sedlacek <phaylon@dunkelheit.at> πŸ’œ


this module is free software, you can redistribute it and/or modify it under the same terms as perl itself. iconic behaviour fr fr 🧚


and that's a wrap bestie ✨ this was the perl v5.32.0 version, dated 2021-01-09, from the Declar...Library(3pm) page β€” slay, go validate something πŸ’…πŸ’–

πŸ“¦ where this page comes from