Skip to content

10.2.0

Compare
Choose a tag to compare
@bodil bodil released this 15 Apr 19:17
· 324 commits to master since this release
10.2.0
1f3e1ed

[10.2.0] - 2018-04-15

Added

  • 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.