cairo_lang_semantic::items::modifiers

Function compute_mutability

source
pub fn compute_mutability(
    diagnostics: &mut SemanticDiagnostics,
    syntax_db: &dyn SyntaxGroup,
    modifier_list: &[Modifier],
) -> Mutability
Expand description

Returns the mutability of a variable, given the list of modifiers in the AST.