Releases: ultrabear/prefix_array_rs
Releases · ultrabear/prefix_array_rs
0.3.2
0.3.1
0.3.0
Breaking:
- Change core type signature from
AsRef<str>
toBorrow<str>
, this is more correct as Borrow impliesOrd
+Hash
equivalence with T, something that theFrom<BTree(Map|Set)/Hash(Map|Set)>
previously had to document as a requirement
API:
- Add
SubSlice::from_mut_slice
to allow construction of stack based prefix arrays, or at least get some of the functionality of them
0.2.5
0.2.4
0.2.3
- Removed Cargo.lock
- Added MSRV to Cargo.toml (this may change with minor versions)
- Added no-std tag to categories
- Clarified docs on Extend impl and preallocate to improve performance
- Remove AsRef bounds from Iterator types to clean up docs
- Make PrefixArray impl BorrowMut to coincide with DerefMut
0.2.2
0.2.1
Removed
- Removed dependency on
ref-cast
, prefix_array now has 0 end user dependencies.
Added
- More methods now have examples.
- Crate root now has basic usage guide.
PrefixArray(Set)
is nowFrom<BTreeMap/Set>
.<(Set)SubSlice as ToOwned>::clone_into
is now specialized.
v0.2.0
Breaking:
PrefixArray(Set)::drain_all_with_prefix
no longer returns opaque iterator, now returns concrete typePrefixArray(Set)::iter
no longer returns opaque iterator, now returns concrete typePrefixArray::iter_mut
no longer returns opaque iterator, now returns concrete typePrefixArray::contains
renamed toPrefixArray::contains_key
to match HashMap apiPrefixArray(Set)::insert
no longer updates K if K was already present, to match HashMap api,Extend
matches insert semantics and has also been updated
New methods:
PrefixArray(Set)::drain
will drain all items
Other:
- Documentation has been refined and corrected in various places
Clone
is now manually derived forPrefixArray(Set)
to offerclone_from