Derive Macro inline_proc::InlineDerive [−][src]
#[derive(InlineDerive)]
{
// Attributes available to this derive:
#[inline_derive]
#[helper]
}
Expand description
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:
ⓘ
#[derive(InlineDerive)]
#[inline_derive(DeriveName1, DeriveName2)]
struct Item;
to:
ⓘ
DeriveName1!(struct Item;);
DeriveName2!(struct Item;);