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.
- The new minimum supported Rust version is 1.75.0. From now bumping the MSRV will not be considered a breaking change anymore.
newconstructor got renamed towith_defaultnew_with_mapconstructor 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_fnandfrom_map_with_fnconstructors were added to allow creating a default from a closure.- A
get_defaultmethod 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 whereTdoes not implementClone.