Module attr_wrapper

Source

Structsยง

AttrWrapper ๐Ÿ”’
A wrapper type to ensure that the parser handles outer attributes correctly. When we parse outer attributes, we need to ensure that we capture tokens for the attribute target. This allows us to perform cfg-expansion on a token stream before we invoke a derive proc-macro.
CollectPos ๐Ÿ”’

Enumsยง

UsePreAttrPos ๐Ÿ”’

Functionsยง

has_cfg_or_cfg_attr ๐Ÿ”’
Returns true if attrs contains a cfg or cfg_attr attribute
needs_tokens ๐Ÿ”’
Tokens are needed if: