]> git.lizzy.rs Git - rust.git/commitdiff
make EnumSet derive Ord and PartialOrd
authorAlexis Beingessner <a.beingessner@gmail.com>
Sat, 27 Sep 2014 20:47:53 +0000 (16:47 -0400)
committerAlexis Beingessner <a.beingessner@gmail.com>
Sat, 27 Sep 2014 20:47:53 +0000 (16:47 -0400)
src/libcollections/enum_set.rs

index 02396dc13d134c7f2ebb50ae86435ca40d7e50d5..f282549f6f9a44eb654ae9b464cf26b6eccdc817 100644 (file)
@@ -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