make EnumSet derive Ord and PartialOrd
This commit is contained in:
parent
ef112fe185
commit
e27308b31b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue