Struct macrohelper::MacroInput [] [src]

pub struct MacroInput {
    pub attr: Vec<HashTag>,
    pub id: String,
    pub body: BodyKind,
}

Input to a macro1.1 invocation

Macro1.1 compiler hook gives a string of tokens. That is converted to an AST by syn. This crate then converts syn's output into this type.

Fields

Information about any and all #[...] headers

Name of the structure or enum

Informatin about the body

Methods

impl MacroInput
[src]

High level fake implemenation.

Just converts TokenStream to a string, and called from_str

Actual implementation of the conversion

Trait Implementations

impl Clone for MacroInput
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for MacroInput
[src]

Formats the value using the given formatter.