We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ee56c9 commit 01b599eCopy full SHA for 01b599e
src/libcollections/enum_set.rs
@@ -16,7 +16,6 @@
16
use core::prelude::*;
17
use core::fmt;
18
19
-// FIXME(conventions): implement BitXor
20
// FIXME(contentions): implement union family of methods? (general design may be wrong here)
21
// FIXME(conventions): implement len
22
@@ -196,6 +195,12 @@ impl<E:CLike> BitAnd<EnumSet<E>, EnumSet<E>> for EnumSet<E> {
196
195
}
197
198
+impl<E:CLike> BitXor<EnumSet<E>, EnumSet<E>> for EnumSet<E> {
199
+ fn bitxor(&self, e: &EnumSet<E>) -> EnumSet<E> {
200
+ EnumSet {bits: self.bits ^ e.bits}
201
+ }
202
+}
203
+
204
/// An iterator over an EnumSet
205
pub struct Items<E> {
206
index: uint,
0 commit comments