-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expand traits implemented by BitFlags
PartialOrd and Ord are now implemented. The values returned by the traits aren't meaningful, but they allow using BitFlags as a key in a BTreeMap. I wish the traits had a distinction between "meaningful order" (overloaded comparison operators) and "arbitrary order" (can be used in BTreeMap). Moreover, the implementation for Hash is improved, so that code that is generic over BitFlag can still access it. Closes #47
- Loading branch information
1 parent
b61a59e
commit 5231436
Showing
2 changed files
with
43 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters