[−][src]Attribute Macro inline_proc::inline_attr
#[inline_attr]
Use an inline procedural macro attribute.
Simply replace where you would usually write #[my_attr] or #[my_attr(params)] with
#[inline_attr[my_attr]] and #[inline_attr[my_attr(params)]]. Everything else works the
same.
Internally, this macro expands:
ⓘThis example is not tested
#[inline_attr(attr_name(params))] struct Item;
to:
ⓘThis example is not tested
attr_name!((params) struct Item);