Attribute Macro inline_proc::inline_attr [−][src]
#[inline_attr]
Expand description
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:
ⓘ
#[inline_attr(attr_name(params))]
struct Item;
to:
ⓘ
attr_name!((params) struct Item);