Skip to main content

mf2_runtime/
functions.rs

1//! The core functions (`plans/03-runtime.md` §3, §5.1): statics for a
2//! [`crate::Registry`]. An application's generated registry names only the
3//! ones its corpus uses (closed world, B13).
4
5mod number;
6mod string;
7
8pub use number::NumberFunction;
9pub use string::StringFunction;
10
11/// `:string` (`functions/string.md`).
12pub static STRING: StringFunction = StringFunction;
13
14/// `:number` (`functions/number.md`), neutral symbols.
15pub static NUMBER: NumberFunction = NumberFunction::NUMBER;
16
17/// `:integer` (`functions/number.md`), neutral symbols.
18pub static INTEGER: NumberFunction = NumberFunction::INTEGER;
19
20/// `:offset` (`functions/number.md`), neutral symbols.
21pub static OFFSET: NumberFunction = NumberFunction::OFFSET;