Struct rustc_feature::builtin_attrs::AttributeTemplate [−][src]
pub struct AttributeTemplate {
pub word: bool,
pub list: Option<&'static str>,
pub name_value_str: Option<&'static str>,
}Expand description
A template that the attribute input must match.
Only top-level shape (#[attr] vs #[attr(...)] vs #[attr = ...]) is considered now.
Fields
word: boollist: Option<&'static str>name_value_str: Option<&'static str>Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AttributeTemplateimpl Send for AttributeTemplateimpl Sync for AttributeTemplateimpl Unpin for AttributeTemplateimpl UnwindSafe for AttributeTemplateBlanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 40 bytes