Skip to content

Commit

Permalink
Rewrite the entire library.
Browse files Browse the repository at this point in the history
Implemented some helper functions

Partially implemented some of the easier functions from here
servo/rust-smallvec#220 (comment)

Implemented `PartialEq` for SmallSet

Added tests for `replace`.

nitpick from Intellij Rust

SmallSet is now a wrapper over enum of SmallVec and HashSet

Insertion now moves to a heap allocated HashSet when capacity.

Fixed compilation error from previous commit

Might want to merge this two later.

Cleared now changes to stack.

Implemented drain

Moved tests and updated them.

Updated tests.

Fixed set equality.
  • Loading branch information
hanif.ariffin.4326@gmail.com authored and hbina committed Aug 19, 2020
1 parent 7c23052 commit c703041
Show file tree
Hide file tree
Showing 4 changed files with 680 additions and 95 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target
Cargo.lock
.idea/
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ documentation = "https://cfallin.github.io/rust-smallset/smallset/"
license = "MIT"

[dependencies]
smallvec = "0.1"
smallvec = "1.4.2"

0 comments on commit c703041

Please sign in to comment.