Enum syntax::codemap::MacroFormat [−] [src]

pub enum MacroFormat {
    MacroAttribute,
    MacroBang,
    CompilerExpansion,
}
Unstable

The syntax with which a macro was invoked.

Variants

MacroAttribute
Unstable

e.g. #[derive(...)]

MacroBang
Unstable

e.g. format!()

CompilerExpansion
Unstable

Expansion performed by the compiler (libsyntax::expand).

Trait Implementations

Derived Implementations

impl Debug for MacroFormat

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

impl Hash for MacroFormat

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

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

impl Copy for MacroFormat

impl Clone for MacroFormat

fn clone(&self) -> MacroFormat

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