macro_rules! for_each_restore_rule {
($($callback:tt)+) => { ... };
}Expand description
Hands the complete restore rule set to $callback.
This family’s single enumeration. $callback is the path of a macro that
accepts a comma-separated list of identifiers, and it is invoked once, with
every rule in restore_rules.
§Examples
macro_rules! rule_names {
($($name:ident),* $(,)?) => { [ $( stringify!($name) ),* ] };
}
let names = happenstance_sync_testkit::for_each_restore_rule!(rule_names);
assert!(names.contains(&"restored_peer_does_not_reissue_identities"));