pub fn is_single_arg_attr(
db: &dyn SyntaxGroup,
attr: &Attribute,
arg_name: &str,
) -> bool
Expand description
Checks if the given attribute has a single argument with the given name.
pub fn is_single_arg_attr(
db: &dyn SyntaxGroup,
attr: &Attribute,
arg_name: &str,
) -> bool
Checks if the given attribute has a single argument with the given name.