Skip to main content

Module context

Module context 

Source
Expand description

Context given to attribute parsers when parsing.

Macrosยง

attribute_parsers ๐Ÿ”’

Structsยง

AcceptContext
Context given to every attribute parser when accepting
AttributeDiagnosticContext ๐Ÿ”’
The interface for issuing argument parsing related diagnostics.
FinalizeCheckContext ๐Ÿ”’
Context given to deferred cross-attribute checks (finalize_check).
FinalizeContext ๐Ÿ”’
Context given to every attribute parser during finalization.
FinalizeOutput ๐Ÿ”’
The result of finalizing a single attribute parser.
GroupTypeInner ๐Ÿ”’
GroupTypeInnerAccept ๐Ÿ”’
SharedContext
Context given to every attribute parser during finalization.
Suggestion ๐Ÿ”’
Represents a custom suggestion that an attribute parser can emit.

Enumsยง

OmitDoc
ShouldEmit

Staticsยง

ATTRIBUTE_PARSERS ๐Ÿ”’

Traitsยง

ExpectNameValue ๐Ÿ”’
ExpectStringLiteral ๐Ÿ”’

Type Aliasesยง

AcceptFn ๐Ÿ”’
FinalizeCheckFn ๐Ÿ”’
A cross-attribute check that runs after all attributes on an item have been finalized, so it can inspect the fully parsed attributes via FinalizeCheckContext::parsed_attrs. The Span is the span of the attribute the check is associated with, used for diagnostics.
FinalizeFn ๐Ÿ”’
GroupType ๐Ÿ”’