Skip to main content

for_each_projection_store_rule

Macro for_each_projection_store_rule 

macro_rules! for_each_projection_store_rule {
    ($($callback:tt)+) => { ... };
}
Expand description

Hands the complete projection store rule set to $callback.

This family’s single enumeration (CF-22). It lives here beside the rules it names, for the reason the module documentation gives: a projection rule in suite.rs is an orphan of the event-store enumeration.

§Examples

macro_rules! rule_names {
    ($($name:ident),* $(,)?) => { [ $( stringify!($name) ),* ] };
}

let names = happenstance_testkit::for_each_projection_store_rule!(rule_names);
assert!(names.contains(&"commit_is_atomic_with_the_read_model"));