Skip to content

Releases: ultrabear/prefix_array_rs

0.3.4

24 Oct 06:34
e88903d

Choose a tag to compare

Patches all clippy lints while remaining on MSRV 1.65

0.3.3

22 Oct 00:28
39c59ef

Choose a tag to compare

Fixes docsrs build failures, no actual change to crate contents

0.3.2

16 Oct 03:27
5dbd49e

Choose a tag to compare

  • Added internal PrefixOwned and PrefixBorrowed traits so that PrefixArray and PrefixArraySet could have separate implementations

0.3.1

14 Oct 01:30
1f9ec36

Choose a tag to compare

  • Added ScratchSpace and extend_with to lower allocations when extending multiple times
  • apply clippy 1.73 lints

0.3.0

22 Aug 23:26
98dec52

Choose a tag to compare

Breaking:

  • Change core type signature from AsRef<str> to Borrow<str>, this is more correct as Borrow implies Ord+Hash equivalence with T, something that the From<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

18 Aug 03:32
7a900d0

Choose a tag to compare

  • Added std feature gate docs for From<HashMap/HashSet>

0.2.4

19 Apr 22:30
a30db06

Choose a tag to compare

Bugs:

  • PrefixArray(Set)::insert was replacing K when it is documented to not do so to match HashMap

0.2.3

16 Apr 21:05
108360c

Choose a tag to compare

  • 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

13 Apr 08:28
2873f26

Choose a tag to compare

Added:

  • Add proper Debug impls for PrefixArray(Set) and subslice types
  • Derive Eq and PartialEq on PrefixArray(Set) and subslice types

Bugs:

  • Extend impl could cause duplicate keys to be inserted into the map if they were not previously in the map

0.2.1

07 Apr 02:27
2d92cb8

Choose a tag to compare

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 now From<BTreeMap/Set>.
  • <(Set)SubSlice as ToOwned>::clone_into is now specialized.