title: How would I create and use a string to string Hashmap in Rust?
body: <p>How would I idiomatically create a string to string hashmap in rust. The following works, but is it the right way to do it? is there a different kind of string I should be using?</p>
  
  <pre><code>use std::collections::hashmap::HashMap;
  //use std::str;
  fn main() {
          let mut mymap = HashMap::new();
          mymap.insert("foo".to_string(), "bar".to_string());
          println!("{0}", mymap["foo".to_string()]);
  }
  </code></pre>