Module prelude

Module prelude 

Source
Expand description

All the parsers require roughly the same imports, so this prelude has most of the often-needed ones.

ModulesΒ§

sym πŸ”’
This module contains all the defined non-keyword Symbols.

MacrosΒ§

template πŸ”’
A convenience macro for constructing attribute templates. E.g., template!(Word, List: "description") means that the attribute supports forms #[attr] and #[attr(description)].

StructsΒ§

AttributeTemplate πŸ”’
A template that the attribute input must match. Only top-level shape (#[attr] vs #[attr(...)] vs #[attr = ...]) is considered now.
Ident πŸ”’
Span πŸ”’
A compressed span.
Symbol πŸ”’
An interned UTF-8 string.
ThinVec πŸ”’
See the crate’s top level documentation for a description of this type.

EnumsΒ§

AttributeKind πŸ”’
Represents parsed built-in inert attributes.
AttributeLintKind πŸ”’
MethodKind πŸ”’
Target πŸ”’

ConstantsΒ§

DUMMY_SP πŸ”’
The dummy span has zero position, length, and context, and no parent.