File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -729,6 +729,18 @@ impl BitvSet {
729
729
BitPositions { set : self , next_idx : 0 }
730
730
}
731
731
732
+ /// Iterator over each uint stored in `self` union `other`
733
+ #[ inline]
734
+ pub fn union < ' a > ( & ' a self , other : & ' a BitvSet ) -> TwoBitPositions < ' a > {
735
+ TwoBitPositions {
736
+ set : self ,
737
+ other : other,
738
+ merge : |w1, w2| w1 | w2,
739
+ current_word : 0 ,
740
+ next_idx : 0
741
+ }
742
+ }
743
+
732
744
/// Iterator over each uint stored in the `self` setminus `other`
733
745
#[ inline]
734
746
pub fn difference < ' a > ( & ' a self , other : & ' a BitvSet ) -> TwoBitPositions < ' a > {
@@ -766,18 +778,6 @@ impl BitvSet {
766
778
} . take ( min)
767
779
}
768
780
769
- /// Iterator over each uint stored in `self` union `other`
770
- #[ inline]
771
- pub fn union < ' a > ( & ' a self , other : & ' a BitvSet ) -> TwoBitPositions < ' a > {
772
- TwoBitPositions {
773
- set : self ,
774
- other : other,
775
- merge : |w1, w2| w1 | w2,
776
- current_word : 0 ,
777
- next_idx : 0
778
- }
779
- }
780
-
781
781
/// Union in-place with the specified other bit vector
782
782
#[ inline]
783
783
pub fn union_with ( & mut self , other : & BitvSet ) {
You can’t perform that action at this time.
0 commit comments