rustc_expand::base

Trait 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§

source

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.

Implementors§