Struct ra_ap_hir::AttributeTemplate
source · 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: bool
§list: Option<&'static str>
§name_value_str: Option<&'static str>
Trait Implementations§
source§impl Clone for AttributeTemplate
impl Clone for AttributeTemplate
source§fn clone(&self) -> AttributeTemplate
fn clone(&self) -> AttributeTemplate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more