reactive_graph_behaviour_model_impl/behaviour/
function.rs1#[macro_export]
2macro_rules! behaviour_functions {
3 (
4 $collection_name: ident,
5 $function_type: ty,
6 $namespace: ident
7 $(,
8 (
9 $type_name: expr,
10 $function: ident
11 )
12 )*
13 ) => {
14 pub static $collection_name: std::sync::LazyLock<std::collections::HashMap<reactive_graph_behaviour_model_api::BehaviourTypeId, $function_type>> = std::sync::LazyLock(|| vec![
15 $((reactive_graph_behaviour_model_api::BehaviourTypeId::new_from_type($namespace, $type_name), $function),)*
16 ].into_iter().collect());
17 };
18}