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
Option (since 1.0) and Result(since 1.16) have a handy .unwrap_or_default() for every type that is Default. The collection types have .or_insert() and .or_insert_with() but no .or_insert_default(). This would be nice to have and would free people from writing things like .or_insert_with(HashSet::new) multiple times.
Option
(since 1.0) andResult
(since 1.16) have a handy.unwrap_or_default()
for every type that isDefault
. The collection types have.or_insert()
and.or_insert_with()
but no.or_insert_default()
. This would be nice to have and would free people from writing things like.or_insert_with(HashSet::new)
multiple times.Something along the line of
The text was updated successfully, but these errors were encountered: