Struct syntex_syntax::ast::MacroDef [] [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 allow_internal_unstable: 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
allow_internal_unstable
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, __D::Error>

impl Encodable for MacroDef

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

impl Eq for MacroDef

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)