Derive Macro codegen::LayoutData
source · #[derive(LayoutData)]
{
// Attributes available to this derive:
#[substrate]
}
Expand description
Derives substrate::layout::Data
for a struct.
§Examples
This example stores the individual buffer instances within a buffer chain.
#[derive(Default, LayoutData)]
pub struct BufferNData {
pub buffers: Vec<Instance<Buffer>>,
}