class_docstr: A printer to convert SymPy expressions to strings of Rust code
class_docstr_tok: ["A","printer","to","convert","SymPy","expressions","to","strings","of","Rust","code"]
code: def _print_Assignment(self, expr):
      from sympy.tensor.indexed import IndexedBase
  
      lhs = expr.lhs
      rhs = expr.rhs
      if self._settings["contract"] and (
          lhs.has(IndexedBase) or rhs.has(IndexedBase)
      ):
          # Here we check if there is looping to be done, and if so
          # print the required loops.
          return self._doprint_loops(rhs, lhs)
      else:
          lhs_code = self._print(lhs)
          rhs_code = self._print(rhs)
          return self._get_statement("%s = %s" % (lhs_code, rhs_code))
  
imports: from __future__ import annotations
  from typing import Any
  from sympy.core import S, Rational, Float, Lambda
  from sympy.core.numbers import equal_valued
  from sympy.printing.codeprinter import CodePrinter
label_desc: Use image node_id 33 for calling the RustCodePrinter obj's underlying member method code with example usage: obj._print_Assignment(expr) and returns: self, self