diff options
| author | Alexis Beingessner <a.beingessner@gmail.com> | 2014-09-27 16:47:53 -0400 |
|---|---|---|
| committer | Alexis Beingessner <a.beingessner@gmail.com> | 2014-09-27 16:47:53 -0400 |
| commit | e27308b31b6cfc0199d95e0b49e5d107f6528197 (patch) | |
| tree | a1fdd4af4e0c1dbf86677b36b124dc508daa7040 /src/libcollections | |
| parent | ef112fe185a49ad9c49722702a695d8bd6b9df47 (diff) | |
| download | rust-e27308b31b6cfc0199d95e0b49e5d107f6528197.tar.gz rust-e27308b31b6cfc0199d95e0b49e5d107f6528197.zip | |
make EnumSet derive Ord and PartialOrd
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/enum_set.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcollections/enum_set.rs b/src/libcollections/enum_set.rs index 02396dc13d1..f282549f6f9 100644 --- a/src/libcollections/enum_set.rs +++ b/src/libcollections/enum_set.rs @@ -16,7 +16,7 @@ use core::prelude::*; use core::fmt; -#[deriving(Clone, PartialEq, Eq, Hash)] +#[deriving(Clone, PartialEq, Eq, PartialOrd, Ord, Hash)] /// A specialized `Set` implementation to use enum types. pub struct EnumSet<E> { // We must maintain the invariant that no bits are set |
