Trait rustc_expand::base::MultiItemModifier
source · pub trait MultiItemModifier {
// Required method
fn expand(
&self,
ecx: &mut ExtCtxt<'_>,
span: Span,
meta_item: &MetaItem,
item: Annotatable,
is_derive_const: bool
) -> ExpandResult<Vec<Annotatable>, Annotatable>;
}
Required Methods§
sourcefn expand(
&self,
ecx: &mut ExtCtxt<'_>,
span: Span,
meta_item: &MetaItem,
item: Annotatable,
is_derive_const: bool
) -> ExpandResult<Vec<Annotatable>, Annotatable>
fn expand( &self, ecx: &mut ExtCtxt<'_>, span: Span, meta_item: &MetaItem, item: Annotatable, is_derive_const: bool ) -> ExpandResult<Vec<Annotatable>, Annotatable>
meta_item
is the attribute, and item
is the item being modified.