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:
- Using the
#[result(n)]or#[operand(n)]wherenis the index of the value. - 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>>.