Skip to main content

is_mutation_expr

Function is_mutation_expr 

Source
fn is_mutation_expr(expr: &Expr) -> bool
Expand description

Checks if an expression represents a mutation operation Returns true if any of the following conditions are met:

  • Assignment to a member expression (e.g., a.x = 1 or a[0] = 1)
  • Update expression on a member (e.g., ++a.x or a[0]++)
  • Delete operation on a member (e.g., delete a.x)