AttrProcMacro

Trait AttrProcMacro 

Source
pub trait AttrProcMacro {
    // Required method
    fn expand<'cx>(
        &self,
        ecx: &'cx mut ExtCtxt<'_>,
        span: Span,
        annotation: TokenStream,
        annotated: TokenStream,
    ) -> Result<TokenStream, ErrorGuaranteed>;

    // Provided method
    fn expand_with_safety<'cx>(
        &self,
        ecx: &'cx mut ExtCtxt<'_>,
        safety: Safety,
        span: Span,
        annotation: TokenStream,
        annotated: TokenStream,
    ) -> Result<TokenStream, ErrorGuaranteed> { ... }
}

Required Methods§

Source

fn expand<'cx>( &self, ecx: &'cx mut ExtCtxt<'_>, span: Span, annotation: TokenStream, annotated: TokenStream, ) -> Result<TokenStream, ErrorGuaranteed>

Provided Methods§

Source

fn expand_with_safety<'cx>( &self, ecx: &'cx mut ExtCtxt<'_>, safety: Safety, span: Span, annotation: TokenStream, annotated: TokenStream, ) -> Result<TokenStream, ErrorGuaranteed>

Implementors§