()
| 12 | use std::sync::OnceLock; |
| 13 | |
| 14 | pub fn standard_functions() -> &'static HashMap<&'static str, StandardFunction> { |
| 15 | static HASHMAP: OnceLock<HashMap<&'static str, StandardFunction>> = OnceLock::new(); |
| 16 | HASHMAP.get_or_init(|| { |
| 17 | let mut map: HashMap<&'static str, StandardFunction> = HashMap::new(); |
| 18 | register_std_text_functions(&mut map); |
| 19 | register_std_datetime_functions(&mut map); |
| 20 | register_std_number_functions(&mut map); |
| 21 | register_std_general_functions(&mut map); |
| 22 | register_std_regex_functions(&mut map); |
| 23 | register_std_array_functions(&mut map); |
| 24 | register_std_range_functions(&mut map); |
| 25 | map |
| 26 | }) |
| 27 | } |
| 28 | |
| 29 | pub fn standard_function_signatures() -> HashMap<&'static str, Signature> { |
| 30 | let mut map: HashMap<&'static str, Signature> = HashMap::new(); |
no test coverage detected
searching dependent graphs…