Skip to content

Commit 85d35a8

Browse files
treemanalexcrichton
authored andcommitted
---
yaml --- r: 132031 b: refs/heads/dist-snap c: 9aaaa6b h: refs/heads/master i: 132029: 8156275 132027: 65a5705 132023: 445d677 132015: 429b92f 131999: 5be9f5b 131967: 3fb13f9 v: v3
1 parent 8136055 commit 85d35a8

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: 457a3c991d79b971be07fce75f9d0c12848fb37c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: c86873bda4d0d32a595dbaf24745c1f7cd9b89da
9+
refs/heads/dist-snap: 9aaaa6b31e644f174051e30a48ec6fa350e7591d
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libcollections/bitv.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -723,30 +723,6 @@ impl BitvSet {
723723
bitv.nbits = trunc_len * uint::BITS;
724724
}
725725

726-
/// Union in-place with the specified other bit vector
727-
#[inline]
728-
pub fn union_with(&mut self, other: &BitvSet) {
729-
self.other_op(other, |w1, w2| w1 | w2);
730-
}
731-
732-
/// Intersect in-place with the specified other bit vector
733-
#[inline]
734-
pub fn intersect_with(&mut self, other: &BitvSet) {
735-
self.other_op(other, |w1, w2| w1 & w2);
736-
}
737-
738-
/// Difference in-place with the specified other bit vector
739-
#[inline]
740-
pub fn difference_with(&mut self, other: &BitvSet) {
741-
self.other_op(other, |w1, w2| w1 & !w2);
742-
}
743-
744-
/// Symmetric difference in-place with the specified other bit vector
745-
#[inline]
746-
pub fn symmetric_difference_with(&mut self, other: &BitvSet) {
747-
self.other_op(other, |w1, w2| w1 ^ w2);
748-
}
749-
750726
/// Iterator over each uint stored in the BitvSet
751727
#[inline]
752728
pub fn iter<'a>(&'a self) -> BitPositions<'a> {
@@ -801,6 +777,30 @@ impl BitvSet {
801777
next_idx: 0
802778
}
803779
}
780+
781+
/// Union in-place with the specified other bit vector
782+
#[inline]
783+
pub fn union_with(&mut self, other: &BitvSet) {
784+
self.other_op(other, |w1, w2| w1 | w2);
785+
}
786+
787+
/// Intersect in-place with the specified other bit vector
788+
#[inline]
789+
pub fn intersect_with(&mut self, other: &BitvSet) {
790+
self.other_op(other, |w1, w2| w1 & w2);
791+
}
792+
793+
/// Difference in-place with the specified other bit vector
794+
#[inline]
795+
pub fn difference_with(&mut self, other: &BitvSet) {
796+
self.other_op(other, |w1, w2| w1 & !w2);
797+
}
798+
799+
/// Symmetric difference in-place with the specified other bit vector
800+
#[inline]
801+
pub fn symmetric_difference_with(&mut self, other: &BitvSet) {
802+
self.other_op(other, |w1, w2| w1 ^ w2);
803+
}
804804
}
805805

806806
impl fmt::Show for BitvSet {

0 commit comments

Comments
 (0)