pub fn match_attribute_with_str_value<'a>( meta: &'a Meta, attr: &str, ) -> Result<Option<&'a LitStr>>
Compares ident and attr and in case they match ensures value is Some and contains a LitStr. Returns true in case ident and attr match, otherwise false.
ident
attr
value
Some
LitStr
true
Returns an error in case ident and attr match but the value is not Some or is not a LitStr.