title: How in Swift to know that struct is deleted from Memory?
body: <p>In swift <strong>class</strong> type has method <code>deinit()</code> in which we can define that instance of class will be removed from memory. How we can know for <strong>struct</strong> that it will be removed from memory?</p>
  
  <p>For example,</p>
  
  <pre><code>struct Vehicle { ... }
  var v: Vehicle? = Vehicle()
  v = nil
  </code></pre>