Skip to main content

Module basic_functions

Module basic_functions 

Source
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.
EmailFunction
Validation function that tests a value against a simple email pattern.
FormatCurrencyFunction
Format a number as a currency string.
FormatDateFunction
Format an ISO-8601 datetime string using a TR35-style pattern.
FormatNumberFunction
Format a number with optional grouping and decimal precision.
FormatStringFunction
String interpolation with ${expression} blocks and \${ escaping.
LengthFunction
Validation function that checks string length bounds.
NotFunction
Logical NOT of a single boolean value.
NumericFunction
Validation function that checks whether a value is a valid number within optional bounds.
OpenUrlFunction
No-op side-effect function (cannot open URLs in a TUI environment).
OrFunction
Logical OR over an array of booleans.
PluralizeFunction
Resolve the correct plural form for a numeric value.
RegexFunction
Validation function that tests a string against a regex pattern.
RequiredFunction
Validation function that returns true when 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.