.. _predicates: Predicates and factories ======================== Predicates are functions that return a boolean value given a single argument. These modules contain predicate functions, and functions that return predicates, that can be composed and used for phantom types. Boolean logic ------------- .. automodule:: phantom.predicates.boolean :members: :undoc-members: Collection ---------- .. automodule:: phantom.predicates.collection :members: :undoc-members: Datetime -------- .. automodule:: phantom.predicates.datetime :members: :undoc-members: Generic ------- .. automodule:: phantom.predicates.generic :members: Numeric intervals ----------------- .. automodule:: phantom.predicates.interval :members: :undoc-members: Numeric ------- .. automodule:: phantom.predicates.numeric :members: :undoc-members: Regular expressions ------------------- .. automodule:: phantom.predicates.re :members: :undoc-members: