All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
new
constructor got renamed towith_default
new_with_map
constructor got renamed tofrom_map_with_default
, and its arguments were switched around- The new minimum supported Rust version is 1.71.0
- A lot more methods are now forwarded
with_fn
andfrom_map_with_fn
constructors were added to allow creating a default from a closure.- A
get_default
method to get an owned version of the default.
- Values now don't have to implement
Clone
. They only need to implementDefault
. This is especially useful for values that are anOption<T>
of whereT
does not implementClone
.