Derive Macro orzir_macros::ControlFlow
source · #[derive(ControlFlow)]
{
// Attributes available to this derive:
#[successor]
}
Expand description
Implement the ControlFlow for the given struct.
The #[successor] attribute is used to specify the successor field of the
struct.
There are currently two ways to specify these fields:
- Using the
#[successor(n)]wherenis the index of the field. - Using the
#[successor(...)], which means the field is a vector of the successors.
The type of the fields should be Successor or Vec<Successor>.