fn is_attr_template_compatible(template: &AttributeTemplate, meta: &ast::MetaItemKind) -> bool {
    match meta {
        MetaItemKind::Word => template.word,
        MetaItemKind::List(..) => template.list.is_some(),
        MetaItemKind::NameValue(lit) if lit.kind.is_str() => template.name_value_str.is_some(),
        MetaItemKind::NameValue(..) => false,
    }
}
/// Checks that the given meta-item is compatible with this `AttributeTemplate`.
Checks that the given meta-item is compatible with this `AttributeTemplate`.
Checks that the given meta - item is compatible with this ` AttributeTemplate ` .
fn is_attr_template_compatible(template: &AttributeTemplate, meta: &ast::MetaItemKind) -> bool {
    match meta {
        MetaItemKind::Word => template.word,
        MetaItemKind::List(..) => template.list.is_some(),
        MetaItemKind::NameValue(lit) if lit.kind.is_str() => template.name_value_str.is_some(),
        MetaItemKind::NameValue(..) => false,
    }
}
fn is_attr_template_compatible ( template : & AttributeTemplate , meta : & ast :: MetaItemKind ) -> bool { match meta { MetaItemKind :: Word => template . word , MetaItemKind :: List ( .. ) => template . list . is_some ( ) , MetaItemKind :: NameValue ( lit ) if lit . kind . is_str ( ) => template . name_value_str . is_some ( ) , MetaItemKind :: NameValue ( .. ) => false , } }
Checks that the given meta-item is compatible with this `AttributeTemplate`.
Checks that the given meta - item is compatible with this ` AttributeTemplate ` .
template
&AttributeTemplate
meta
&ast::MetaItemKind