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