Skip to content

Commit 95c1177

Browse files
treemanalexcrichton
authored andcommitted
---
yaml --- r: 125727 b: refs/heads/try c: 9aaaa6b h: refs/heads/master i: 125725: 3749392 125723: 4a26139 125719: 2184281 125711: b17feb2 125695: 7ee0c8a v: v3
1 parent 76ab8c7 commit 95c1177

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
@@ -2,7 +2,7 @@
22
refs/heads/master: f2fa55903e378368ed9173560f03a0ef16e371c2
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 9fc8394d3bce22ab483f98842434c84c396212ae
5-
refs/heads/try: c86873bda4d0d32a595dbaf24745c1f7cd9b89da
5+
refs/heads/try: 9aaaa6b31e644f174051e30a48ec6fa350e7591d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/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)