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.