Module validus::vstrext

source ·
Expand description

Extension of vstr module with convenience rules.

Logic

  • Conjunction using Conj
  • Disjunction using Disj
  • Negation using Neg

For conjunction and disjunction, the rules are always checked from the left and right, and short-circuiting is used.

The logical connectives may discard the error types of the rules they operate on in certain cases. These cases are documented in the respective types.

String size checking

NOTE: For dynamic bounds, please define your own rules. Your rule just needs to implement ValidateString.

The helpful macros easy_rule and fast_rule can help you with this task.

String content checking

Structs

Enums

Type Definitions