title: A local function in Rust
body: <p>In there any way in Rust to create a <strong>local</strong> function which can be called <strong>more than once</strong>. The way I'd do that in Python is:</p>
  <pre class="lang-py prettyprint-override"><code>def method1():
    def inner_method1():
      print(&quot;Hello&quot;)
  
    inner_method1()
    inner_method1()
  </code></pre>