]> git.lizzy.rs Git - rust.git/blobdiff - src/libextra/enum_set.rs
librustc: Implement coercion for traits.
[rust.git] / src / libextra / enum_set.rs
index 75611f88b6384eefe5cea9885a5fec5393b2eb8a..6fd42f74a767ff7bf22414e22f6d86025cdc6c17 100644 (file)
@@ -13,7 +13,7 @@
 //! This module defines a container which uses an efficient bit mask
 //! representation to hold C-like enum variants.
 
-#[deriving(Clone, Eq, IterBytes, ToStr)]
+#[deriving(Clone, Eq, IterBytes, ToStr, Encodable, Decodable)]
 /// A specialized Set implementation to use enum types.
 pub struct EnumSet<E> {
     // We must maintain the invariant that no bits are set