Expand description
Built-in attributes and cfg
flag gating.
Macros§
- gated 🔒
- 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.
cfg(...)
’s that are feature gated.
Statics§
Functions§
- Whether this builtin attribute is encoded cross crate. This means it can be used cross crate.
- Find a gated cfg determined by the
pred
icate which is given the cfg’s name.
Type Aliases§
- GateFn 🔒