Struct syntax::ast::MacroDefUnstable [-] [+] [src]

pub struct MacroDef {
    pub ident: Ident,
    pub attrs: Vec<Attribute>,
    pub id: NodeId,
    pub span: Span,
    pub imported_from: Option<Ident>,
    pub export: bool,
    pub use_locally: bool,
    pub body: Vec<TokenTree>,
}

A macro definition, in this crate or imported from another.

Not parsed directly, but created on macro import or macro_rules! expansion.

Fields

ident
attrs
id
span
imported_from
export
use_locally
body

Trait Implementations

Derived Implementations

impl Debug for MacroDef

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Hash for MacroDef

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Decodable for MacroDef

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<MacroDef, Error>

impl Encodable for MacroDef

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), Error>

impl Eq for MacroDef

fn assert_receiver_is_total_eq(&self)

impl PartialEq for MacroDef

fn eq(&self, __arg_0: &MacroDef) -> bool

fn ne(&self, __arg_0: &MacroDef) -> bool

impl Clone for MacroDef

fn clone(&self) -> MacroDef

fn clone_from(&mut self, source: &Self)