@@ -413,7 +413,7 @@ impl Bitv {
413413 }
414414
415415 #[ inline]
416- pub fn rev_liter < ' a > ( & ' a self ) -> Invert < BitvIterator < ' a > > {
416+ pub fn rev_iter < ' a > ( & ' a self ) -> Invert < BitvIterator < ' a > > {
417417 self . iter ( ) . invert ( )
418418 }
419419
@@ -723,38 +723,38 @@ impl BitvSet {
723723 }
724724
725725 pub fn difference ( & self , other : & BitvSet , f: |& uint| -> bool) -> bool {
726- for ( i, w1, w2) in self . common_iter ( other) {
726+ for ( i, w1, w2) in self . commons ( other) {
727727 if !iterate_bits ( i, w1 & !w2, |b| f ( & b) ) {
728728 return false
729729 }
730730 } ;
731731 /* everything we have that they don't also shows up */
732- self . outlier_iter ( other) . advance ( |( mine, i, w) |
732+ self . outliers ( other) . advance ( |( mine, i, w) |
733733 !mine || iterate_bits ( i, w, |b| f ( & b) )
734734 )
735735 }
736736
737737 pub fn symmetric_difference ( & self , other : & BitvSet , f: |& uint| -> bool)
738738 -> bool {
739- for ( i, w1, w2) in self . common_iter ( other) {
739+ for ( i, w1, w2) in self . commons ( other) {
740740 if !iterate_bits ( i, w1 ^ w2, |b| f ( & b) ) {
741741 return false
742742 }
743743 } ;
744- self . outlier_iter ( other) . advance ( |( _, i, w) | iterate_bits ( i, w, |b| f ( & b) ) )
744+ self . outliers ( other) . advance ( |( _, i, w) | iterate_bits ( i, w, |b| f ( & b) ) )
745745 }
746746
747747 pub fn intersection ( & self , other : & BitvSet , f: |& uint| -> bool) -> bool {
748- self . common_iter ( other) . advance ( |( i, w1, w2) | iterate_bits ( i, w1 & w2, |b| f ( & b) ) )
748+ self . commons ( other) . advance ( |( i, w1, w2) | iterate_bits ( i, w1 & w2, |b| f ( & b) ) )
749749 }
750750
751751 pub fn union ( & self , other : & BitvSet , f: |& uint| -> bool) -> bool {
752- for ( i, w1, w2) in self . common_iter ( other) {
752+ for ( i, w1, w2) in self . commons ( other) {
753753 if !iterate_bits ( i, w1 | w2, |b| f ( & b) ) {
754754 return false
755755 }
756756 } ;
757- self . outlier_iter ( other) . advance ( |( _, i, w) | iterate_bits ( i, w, |b| f ( & b) ) )
757+ self . outliers ( other) . advance ( |( _, i, w) | iterate_bits ( i, w, |b| f ( & b) ) )
758758 }
759759}
760760
@@ -763,12 +763,12 @@ impl cmp::Eq for BitvSet {
763763 if self . size != other. size {
764764 return false ;
765765 }
766- for ( _, w1, w2) in self . common_iter ( other) {
766+ for ( _, w1, w2) in self . commons ( other) {
767767 if w1 != w2 {
768768 return false ;
769769 }
770770 }
771- for ( _, _, w) in self . outlier_iter ( other) {
771+ for ( _, _, w) in self . outliers ( other) {
772772 if w != 0 {
773773 return false ;
774774 }
@@ -803,15 +803,15 @@ impl Set<uint> for BitvSet {
803803 }
804804
805805 fn is_subset ( & self , other : & BitvSet ) -> bool {
806- for ( _, w1, w2) in self . common_iter ( other) {
806+ for ( _, w1, w2) in self . commons ( other) {
807807 if w1 & w2 != w1 {
808808 return false ;
809809 }
810810 }
811811 /* If anything is not ours, then everything is not ours so we're
812812 definitely a subset in that case. Otherwise if there's any stray
813813 ones that 'other' doesn't have, we're not a subset. */
814- for ( mine, _, w) in self . outlier_iter ( other) {
814+ for ( mine, _, w) in self . outliers ( other) {
815815 if !mine {
816816 return true ;
817817 } else if w != 0 {
@@ -865,7 +865,7 @@ impl BitvSet {
865865 /// both have in common. The three yielded arguments are (bit location,
866866 /// w1, w2) where the bit location is the number of bits offset so far,
867867 /// and w1/w2 are the words coming from the two vectors self, other.
868- fn common_iter < ' a > ( & ' a self , other : & ' a BitvSet )
868+ fn commons < ' a > ( & ' a self , other : & ' a BitvSet )
869869 -> Map < ' static , ( ( uint , & ' a uint ) , & ' a ~[ uint ] ) , ( uint , uint , uint ) ,
870870 Zip < Enumerate < vec:: VecIterator < ' a , uint > > , Repeat < & ' a ~[ uint ] > > > {
871871 let min = num:: min ( self . bitv . storage . len ( ) , other. bitv . storage . len ( ) ) ;
@@ -881,7 +881,7 @@ impl BitvSet {
881881 /// The yielded arguments are a `bool`, the bit offset, and a word. The `bool`
882882 /// is true if the word comes from `self`, and `false` if it comes from
883883 /// `other`.
884- fn outlier_iter < ' a > ( & ' a self , other : & ' a BitvSet )
884+ fn outliers < ' a > ( & ' a self , other : & ' a BitvSet )
885885 -> Map < ' static , ( ( uint , & ' a uint ) , uint ) , ( bool , uint , uint ) ,
886886 Zip < Enumerate < vec:: VecIterator < ' a , uint > > , Repeat < uint > > > {
887887 let slen = self . bitv . storage . len ( ) ;
0 commit comments