There's code in rustc that represents sets as hash maps with value type `()`, and that's a little hokey. Sets should be in the standard library.