File tree Expand file tree Collapse file tree 6 files changed +242
-287
lines changed Expand file tree Collapse file tree 6 files changed +242
-287
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ macro_rules! bench_insert {
86
86
b. iter( || {
87
87
m. clear( ) ;
88
88
for i in ( $keydist) . take( SIZE ) {
89
- m. insert( i, DropType ( i) ) ;
89
+ m. insert( i, ( DropType ( i) , [ i ; 20 ] ) ) ;
90
90
}
91
91
black_box( & mut m) ;
92
92
} ) ;
@@ -112,7 +112,7 @@ macro_rules! bench_grow_insert {
112
112
b. iter( || {
113
113
let mut m = $maptype:: default ( ) ;
114
114
for i in ( $keydist) . take( SIZE ) {
115
- m. insert( i, i ) ;
115
+ m. insert( i, DropType ( i ) ) ;
116
116
}
117
117
black_box( & mut m) ;
118
118
} )
Original file line number Diff line number Diff line change @@ -57,6 +57,11 @@ pub mod raw {
57
57
pub use inner:: * ;
58
58
59
59
#[ cfg( feature = "rayon" ) ]
60
+ /// [rayon]-based parallel iterator types for hash maps.
61
+ /// You will rarely need to interact with it directly unless you have need
62
+ /// to name one of the iterator types.
63
+ ///
64
+ /// [rayon]: https://docs.rs/rayon/1.0/rayon
60
65
pub mod rayon {
61
66
pub use crate :: external_trait_impls:: rayon:: raw:: * ;
62
67
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -61,16 +61,6 @@ impl BitMask {
61
61
}
62
62
}
63
63
64
- #[ inline]
65
- pub fn take_next_bit ( & mut self ) -> Option < usize > {
66
- if let Some ( index) = self . lowest_set_bit ( ) {
67
- * self = self . remove_lowest_bit ( ) ;
68
- Some ( index)
69
- } else {
70
- None
71
- }
72
- }
73
-
74
64
/// Returns the first set bit in the `BitMask`, if there is one. The
75
65
/// bitmask must not be empty.
76
66
#[ inline]
You can’t perform that action at this time.
0 commit comments