I have a proc macro attached to a fn item. On some of the function's attributes inside that mod I would like to have custom attribute that has associated proc macro attributes declared. This is similar to how #[default] can be attached to an enum value inside the #[derive(Default)]. How can I do this, and would it be possible to document it somewhere?
I have a proc macro attached to a
fn
item. On some of the function's attributes inside that mod I would like to have custom attribute that has associated proc macro attributes declared. This is similar to how#[default]
can be attached to an enum value inside the#[derive(Default)]
. How can I do this, and would it be possible to document it somewhere?Example