MCPcopy Index your code
hub / github.com/AmrDeveloper/FileQL / fileql_std_functions

Function fileql_std_functions

src/functions.rs:12–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

10use std::sync::OnceLock;
11
12pub fn fileql_std_functions() -> &'static HashMap<&'static str, StandardFunction> {
13 static HASHMAP: OnceLock<HashMap<&'static str, StandardFunction>> = OnceLock::new();
14 HASHMAP.get_or_init(|| {
15 let mut map: HashMap<&'static str, StandardFunction> = standard_functions().to_owned();
16 map.insert("files_count", files_count);
17 map
18 })
19}
20
21pub fn fileql_std_signatures() -> HashMap<&'static str, Signature> {
22 let mut map: HashMap<&'static str, Signature> = standard_function_signatures().to_owned();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected