title: How to convert the name of a enum's variant to a String in RUST?
body: <p>I am wondering how to implement a method for any enum that will return the variant identifier as a String or &amp;'static str, without using any external crate. Something like:</p>
  <pre><code>pub enum MyEnum {
  
      EnumVariant1
      EnumVariant2
  }
  
  impl MyEnum {
  
      fn to_string(&amp;self) -&gt; String {
          // do Rust stuff here
      }
  }
  
  </code></pre>