Expand description

Built-in attributes and cfg flag gating.

Macros

cfg_fn 🔒
gated 🔒
or_default 🔒
A conveniece macro to deal with $($expr)?.
rustc_attr 🔒
template 🔒
A convenience macro for constructing attribute templates. E.g., template!(Word, List: "description") means that the attribute supports forms #[attr] and #[attr(description)].
ungated 🔒

Structs

A template that the attribute input must match. Only top-level shape (#[attr] vs #[attr(...)] vs #[attr = ...]) is considered now.

Enums

How to handle multiple duplicate attributes on the same item.

Constants

Attributes that have a special meaning to rustc or rustdoc.
GATED_CFGS 🔒
cfg(...)’s that are feature gated.

Statics

Functions

Find a gated cfg determined by the predicate which is given the cfg’s name.

Type Definitions