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

pub enum SyntaxExtensionKind {
    Bang(Box<dyn ProcMacro + Sync + Send>),
    LegacyBang(Box<dyn TTMacroExpander + Sync + Send>),
    Attr(Box<dyn AttrProcMacro + Sync + Send>),
    LegacyAttr(Box<dyn MultiItemModifier + Sync + Send>),
    NonMacroAttr {
        mark_used: bool,
    },
    Derive(Box<dyn MultiItemModifier + Sync + Send>),
    LegacyDerive(Box<dyn MultiItemModifier + Sync + Send>),
}

A syntax extension kind.

Variants

Bang(Box<dyn ProcMacro + Sync + Send>)

A token-based function-like macro.

LegacyBang(Box<dyn TTMacroExpander + Sync + Send>)

An AST-based function-like macro.

Attr(Box<dyn AttrProcMacro + Sync + Send>)

A token-based attribute macro.

LegacyAttr(Box<dyn MultiItemModifier + Sync + Send>)

An AST-based attribute macro.

NonMacroAttr

A trivial attribute "macro" that does nothing, only keeps the attribute and marks it as inert, thus making it ineligible for further expansion.

Fields of NonMacroAttr

mark_used: bool

Suppresses the unused_attributes lint for this attribute.

Derive(Box<dyn MultiItemModifier + Sync + Send>)

A token-based derive macro.

LegacyDerive(Box<dyn MultiItemModifier + Sync + Send>)

An AST-based derive macro.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T[src]

impl<E> SpecializationError for E[src]