cairo_lang_syntax::node::helpers

Function is_single_arg_attr

source
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.