Derive Macro orzir_macros::DataFlow

source ·
#[derive(DataFlow)]
{
    // Attributes available to this derive:
    #[result]
    #[operand]
}
Expand description

Implement the DataFlow for the given struct.

The #[result] and #[operand] attributes are used to specify the result and operand fields of the struct.

There are currently two ways to specify these fields:

  1. Using the #[result(n)] or #[operand(n)] where n is the index of the value.
  2. Using the #[result(...)] or #[operand(...)], which means the field is a vector of the values.

The type of the fields should be ArenaPtr<Value> or Vec<ArenaPtr<Value>>.