You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Map/set methods which accept references to keys will now also take
any value that's borrowable to the key's type, ie. it will take a
reference to a type Borrowable where the key implements Borrow<Borrowable>. This is particularly handy for types such as String because you can now pass &str to key lookups instead of &String. So, instead of the incredibly cumbersome map.get(&"foo".to_string()) you can just do map.get("foo") when
looking up a mapping for a string literal.