[−][src]Derive Macro inline_proc::InlineDerive
#[derive(InlineDerive)] { // Attributes available to this derive: #[inline_derive] #[helper] }
Use an inline procedural derive macro.
Simply replace where you would usually write #[derive(MyDerive)]
with
#[derive(InlineDerive)] #[inline_derive(MyDerive)]
.
Since inline procedural derive macros can't define their own helper attributes, this macro
reserves the #[helper]
helper attribute for you to use.
Internally, this macro expands:
ⓘThis example is not tested
#[derive(InlineDerive)] #[inline_derive(DeriveName1, DeriveName2)] struct Item;
to:
ⓘThis example is not tested
DeriveName1!(struct Item;); DeriveName2!(struct Item;);