make EnumSet derive Ord and PartialOrd

This commit is contained in:
Alexis Beingessner 2014-09-27 16:47:53 -04:00
parent ef112fe185
commit e27308b31b

View 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