13.0.0
The minimum supported Rust version is now 1.34.0.
Changed
im::iter::unfold
now gives you the owned state value rather than an immutable reference to it, which makes it a little more useful.
Removed
- The deprecated
singleton
constructors have been removed. Please useunit
instead. - The deprecated methods
Vector::chunks
andVector::chunks_mut
have been removed in favour ofVector::leaves
andVector::leaves_mut
respectively. (#50) - The deprecated reference to
sized-chunks
has been removed. If you need it, please use thesized-chunks
crate directly. im::iter::unfold_mut
has been removed, as there's no meaningful difference between it and rust-std 1.34.0'sstd::iter::from_fn
with a captured state variable.
Fixed
Vector
now usessized_chunks::InlineArray
instead of anEmpty
enum case to avoid allocation at very small sizes, letting you store a handful of elements on the stack before needing to grow into a full chunk. This has a beneficial effect on performance as well, as there's no pointer into the heap to dereference, making it faster thanstd::vec::Vec
in this configuration.- Some complexity timings have been added and corrected. (#87)
OrdSet::is_subset(&self, other)
now returns immediately whenself
is larger thanother
and thus could not possibly be a subset of it. (#87)