Skip to main content

for_each_concurrency_rule

Macro for_each_concurrency_rule 

macro_rules! for_each_concurrency_rule {
    ($($callback:tt)+) => { ... };
}
Available on non-WebAssembly only.
Expand description

Hands the complete concurrency rule set to $callback.

This family’s single enumeration (CF-22). It lives here beside the rules it names for model.rs’s reason: cargo xtask spec-trace reads suite.rs, and a rule written there would need a clause of its own.

§Examples

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

let names = happenstance_testkit::for_each_concurrency_rule!(rule_names);
assert!(names.contains(&"exactly_one_of_n_contenders_commits"));