Skip to content

Commit

Permalink
Implemented some helper functions
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
hanif.ariffin.4326@gmail.com authored and hbina committed Aug 19, 2020
1 parent 6c9eaa3 commit 14e4d52
Show file tree
Hide file tree
Showing 3 changed files with 664 additions and 95 deletions.
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 14e4d52

Please sign in to comment.