Expand description
Built-in attributes and cfg
flag gating.
Macros§
- experimental 🔒
- gated 🔒
- 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§
- Attribute
Template - A template that the attribute input must match.
Only top-level shape (
#[attr]
vs#[attr(...)]
vs#[attr = ...]
) is considered now. - Builtin
Attribute
Enums§
- Attribute
Duplicates - How to handle multiple duplicate attributes on the same item.
- Attribute
Gate - Attribute
Safety - Attribute
Type - Encode
Cross Crate
Constants§
- GATED_
CFGS 🔒 cfg(...)
’s that are feature gated.- IMPL_
DETAIL 🔒 - INTERNAL_
UNSTABLE 🔒
Statics§
- BUILTIN_
ATTRIBUTES - Attributes that have a special meaning to rustc or rustdoc.
- BUILTIN_
ATTRIBUTE_ MAP
Functions§
- deprecated_
attributes - encode_
cross_ crate - Whether this builtin attribute is encoded cross crate. This means it can be used cross crate.
- find_
gated_ cfg - Find a gated cfg determined by the
pred
icate which is given the cfg’s name. - is_
builtin_ attr_ name - is_
stable_ diagnostic_ attribute - is_
valid_ for_ get_ attr