Macro rustc_feature::builtin_attrs::template
source ยท macro_rules! template { (Word) => { ... }; (List: $descr: expr) => { ... }; (OneOf: $one_of: expr) => { ... }; (NameValueStr: $descr: expr) => { ... }; (Word, List: $descr: expr) => { ... }; (Word, NameValueStr: $descr: expr) => { ... }; (List: $descr1: expr, NameValueStr: $descr2: expr) => { ... }; (Word, List: $descr1: expr, NameValueStr: $descr2: expr) => { ... }; (@ $word: expr, $list: expr, $one_of: expr, $name_value_str: expr) => { ... }; }
Expand description
A convenience macro for constructing attribute templates.
E.g., template!(Word, List: "description")
means that the attribute
supports forms #[attr]
and #[attr(description)]
.