pub fn match_attribute_with_str_value<'a>(
    meta: &'a Meta,
    attr: &str
) -> Result<Option<&'a LitStr>>
Expand description

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.

Errors

Returns an error in case ident and attr match but the value is not Some or is not a LitStr.