title: How do I "interpret" escaped characters in a string?
body: <p>I want to process a string containing a backslash followed by an escapable character as if they were one character.</p>
  
  <pre><code>let raw = r#"\""#;
  let cooked = raw.process_escape_character_magic();
  </code></pre>
  
  <p>Right now, <code>raw</code> has 2 characters: <code>\</code> and <code>"</code>. But what I actually want is <code>cooked</code>, which only has one character: <code>"</code>.</p>
  
  <p>How do I get <code>cooked</code>?</p>
  
  <p>I was thinking about using regex, but I feel like there should probably be a better way.</p>