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.
pub fn compute_mutability(
diagnostics: &mut SemanticDiagnostics,
syntax_db: &dyn SyntaxGroup,
modifier_list: &[Modifier],
) -> Mutability
Returns the mutability of a variable, given the list of modifiers in the AST.