Macro mpstthree::create_multiple_broadcast_role_short[][src]

macro_rules! create_multiple_broadcast_role_short {
    ($($role_name : ident), + $(,) ?) => { ... };
}
This is supported on crate feature macros_simple only.
Expand description

Create multiple new broadcast Role and its dual. A broadcast Role is used for sending a choice. Its dual is used for receving this choice. When a name X is given, the Roles created are

  • RoleXtoAll
  • RoleAlltoX

If you want to specify other names, please use create_multiple_broadcast_role_short

Arguments

  • The name of the new Role

Example

use mpstthree::create_multiple_broadcast_role_short;

// Create the roles *RoleAtoAll*, *RoleBtoAll*, *RoleCtoAll*,
// *RoleAlltoA*, *RoleAlltoB* and *RoleAlltoC*
create_multiple_broadcast_role_short!(A, B, C);

This macro is available only if MultiCrusty is built with the "macros_simple" feature.