diff options
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/container.rs | 12 | ||||
| -rw-r--r-- | src/libstd/hashmap.rs | 22 |
2 files changed, 1 insertions, 33 deletions
diff --git a/src/libstd/container.rs b/src/libstd/container.rs index d855beea50b..10f3fc6586f 100644 --- a/src/libstd/container.rs +++ b/src/libstd/container.rs @@ -87,17 +87,7 @@ pub trait Set<T>: Container { /// Return true if the set is a superset of another fn is_superset(&self, other: &Self) -> bool; - /// Visit the values representing the difference - fn difference(&self, other: &Self, f: &fn(&T) -> bool) -> bool; - - /// Visit the values representing the symmetric difference - fn symmetric_difference(&self, other: &Self, f: &fn(&T) -> bool) -> bool; - - /// Visit the values representing the intersection - fn intersection(&self, other: &Self, f: &fn(&T) -> bool) -> bool; - - /// Visit the values representing the union - fn union(&self, other: &Self, f: &fn(&T) -> bool) -> bool; + // FIXME #8154: Add difference, sym. difference, intersection and union iterators } /// This trait represents actions which can be performed on sets to mutate diff --git a/src/libstd/hashmap.rs b/src/libstd/hashmap.rs index 8c06f23b8c1..ca61f3e5ad8 100644 --- a/src/libstd/hashmap.rs +++ b/src/libstd/hashmap.rs @@ -672,28 +672,6 @@ impl<T:Hash + Eq> Set<T> for HashSet<T> { fn is_superset(&self, other: &HashSet<T>) -> bool { other.is_subset(self) } - - /// Visit the values representing the difference - fn difference(&self, other: &HashSet<T>, f: &fn(&T) -> bool) -> bool { - self.difference_iter(other).advance(f) - } - - /// Visit the values representing the symmetric difference - fn symmetric_difference(&self, - other: &HashSet<T>, - f: &fn(&T) -> bool) -> bool { - self.symmetric_difference_iter(other).advance(f) - } - - /// Visit the values representing the intersection - fn intersection(&self, other: &HashSet<T>, f: &fn(&T) -> bool) -> bool { - self.intersection_iter(other).advance(f) - } - - /// Visit the values representing the union - fn union(&self, other: &HashSet<T>, f: &fn(&T) -> bool) -> bool { - self.union_iter(other).advance(f) - } } impl<T:Hash + Eq> MutableSet<T> for HashSet<T> { |
