Skip to content

Conversation

thestinger
Copy link
Contributor

Closes #2640, and now that () is zero-size it makes the most sense to just implement sets as (opaque) adaptors on top of map types.

I haven't added map::HashSet because that module needs a lot of work first. It doesn't use explicit self, and the mutability is all messed up (and will require a lot of porting). I think I'll just add a new Map trait to the container module and throw out most of map after converting everything to the new trait.

@catamorphism
Copy link
Contributor

Great, thanks! I assume that adding intersection, union and complement will be future work (for someone :-)

catamorphism added a commit that referenced this pull request Jan 20, 2013
@catamorphism catamorphism merged commit b86c90b into rust-lang:incoming Jan 20, 2013
@thestinger thestinger deleted the set branch January 20, 2013 21:47
RalfJung added a commit to RalfJung/rust that referenced this pull request Sep 3, 2025
improve output for 'cargo miri test --help'
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