Struct rustc_expand::proc_macro::ProcMacroDerive [−][src]
pub struct ProcMacroDerive {
pub client: Client<fn(_: TokenStream) -> TokenStream>,
pub krate: CrateNum,
}Fields
client: Client<fn(_: TokenStream) -> TokenStream>krate: CrateNumTrait Implementations
fn expand(
&self,
ecx: &mut ExtCtxt<'_>,
span: Span,
_meta_item: &MetaItem,
item: Annotatable
) -> ExpandResult<Vec<Annotatable>, Annotatable>Auto Trait Implementations
impl RefUnwindSafe for ProcMacroDeriveimpl Send for ProcMacroDeriveimpl Sync for ProcMacroDeriveimpl Unpin for ProcMacroDeriveimpl UnwindSafe for ProcMacroDeriveBlanket Implementations
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes