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

pub enum SyntaxExtension {
    ItemDecorator(ItemDecorator),
    ItemModifier(ItemModifier),
    NormalTT(Box<MacroExpander + 'static>, Option<Span>),
    IdentTT(Box<IdentMacroExpander + 'static>, Option<Span>),
}

An enum representing the different kinds of syntax extensions.

Variants

ItemDecorator

A syntax extension that is attached to an item and creates new items based upon it.

#[deriving(...)] is an ItemDecorator.

ItemModifier

A syntax extension that is attached to an item and modifies it in-place.

NormalTT

A normal, function-like syntax extension.

bytes! is a NormalTT.

IdentTT

A function-like syntax extension that has an extra ident before the block.

macro_rules! is an IdentTT.