Struct syntex_syntax::ast::Mac_ [] [src]

pub struct Mac_ {
    pub path: Path,
    pub tts: Vec<TokenTree>,
    pub ctxt: SyntaxContext,
}

Represents a macro invocation. The Path indicates which macro is being invoked, and the vector of token-trees contains the source of the macro invocation.

NB: the additional ident for a macro_rules-style macro is actually stored in the enclosing item. Oog.

Fields

path
tts
ctxt

Trait Implementations

Derived Implementations

impl Debug for Mac_

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

impl Hash for Mac_

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

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

impl Decodable for Mac_

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

impl Encodable for Mac_

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

impl Eq for Mac_

impl PartialEq for Mac_

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

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

impl Clone for Mac_

fn clone(&self) -> Mac_

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