Enum syntax::ext::base::MacroKind[][src]

pub enum MacroKind {
    Bang,
    Attr,
    Derive,
}

Represents different kinds of macro invocations that can be resolved.

Variants

A bang macro - foo!()

An attribute macro - #[foo]

A derive attribute macro - #[derive(Foo)]

Methods

impl MacroKind
[src]

Trait Implementations

impl Clone for MacroKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for MacroKind
[src]

impl PartialEq for MacroKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for MacroKind
[src]

impl Encodable for MacroKind
[src]

impl Decodable for MacroKind
[src]

impl Hash for MacroKind
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for MacroKind
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for MacroKind

impl Sync for MacroKind