Expand description
Basic catalog function implementations for A2UI.
Provides validation, logical, formatting, localization, and side-effect
functions that implement the FunctionImplementation trait.
Structs§
- AndFunction
- Logical AND over an array of booleans.
- Email
Function - Validation function that tests a value against a simple email pattern.
- Format
Currency Function - Format a number as a currency string.
- Format
Date Function - Format an ISO-8601 datetime string using a TR35-style pattern.
- Format
Number Function - Format a number with optional grouping and decimal precision.
- Format
String Function - String interpolation with
${expression}blocks and\${escaping. - Length
Function - Validation function that checks string length bounds.
- NotFunction
- Logical NOT of a single boolean value.
- Numeric
Function - Validation function that checks whether a value is a valid number within optional bounds.
- Open
UrlFunction - No-op side-effect function (cannot open URLs in a TUI environment).
- OrFunction
- Logical OR over an array of booleans.
- Pluralize
Function - Resolve the correct plural form for a numeric value.
- Regex
Function - Validation function that tests a string against a regex pattern.
- Required
Function - Validation function that returns
truewhen the value is non-null, non-empty-string, and non-empty-array.
Functions§
- build_
basic_ functions - Construct a vector containing all built-in basic function implementations.