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.
|
ItemModifier | A syntax extension that is attached to an item and modifies it in-place. |
NormalTT | A normal, function-like syntax extension.
|
IdentTT | A function-like syntax extension that has an extra ident before the block.
|