pub fn match_attribute_without_value(meta: &Meta, attr: &str) -> Result<bool>
Expand description
Compares ident
and attr
and in case they match ensures value
is None
. 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 None
.