// Check if something is a side-effect free Rust lvalue.
Check if something is a side-effect free Rust lvalue.
Check if something is a side - effect free Rust lvalue .
fn is_simple_lvalue(e: &Expr) -> bool {
            match e.node {
                ExprKind::Path(..) => true,
                ExprKind::Unary(ast::UnOp::Deref, ref e) |
                ExprKind::Field(ref e, _) |
                ExprKind::Index(ref e, _) => is_simple_lvalue(e),
                _ => false,
            }
        }
fn is_simple_lvalue ( e : & Expr ) -> bool { match e . node { ExprKind :: Path ( .. ) => true , ExprKind :: Unary ( ast :: UnOp :: Deref , ref e ) | ExprKind :: Field ( ref e , _ ) | ExprKind :: Index ( ref e , _ ) => is_simple_lvalue ( e ) , _ => false , } }
Check if something is a side-effect free Rust lvalue.
Check if something is a side - effect free Rust lvalue .
e
&Expr