Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FrozenSet and FrozenBTreeSet #80

Closed
wants to merge 4 commits into from

Conversation

DJ-Laser
Copy link

Create types FrozenSet and FrozenBtreeSet based off of the corresponding structs in std::collections
Most of the code is based off of the code in map.rs, adapted for HashSet and BtreeSet

@Manishearth
Copy link
Owner

There's no benefit to FrozenSet: use RefCell with set types.

FrozenMap has the benefit of allowing longer access to its data than the critical section, sets have no keyed data.

@DJ-Laser DJ-Laser deleted the FrozenSet branch November 12, 2024 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants