File tree Expand file tree Collapse file tree
crates/geo_filters/src/diff_count Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11use std:: borrow:: Cow ;
22use std:: cmp:: Ordering ;
3- use std:: iter:: Peekable ;
43use std:: mem:: { size_of, size_of_val} ;
54use std:: ops:: { Index , Range } ;
65
@@ -37,13 +36,7 @@ impl BitVec<'_> {
3736 /// Takes an iterator of `BitChunk` items as input and returns the corresponding `BitVec`.
3837 /// The order of `BitChunk`s doesn't matter for this function and `BitChunk` may be hitting
3938 /// the same block. In this case, the function will simply xor them together.
40- ///
41- /// NOTE: If the bitchunks iterator is empty, the result is NOT sized to `num_bits` but will
42- /// be EMPTY instead.
43- pub fn from_bit_chunks < I : Iterator < Item = BitChunk > > (
44- chunks : Peekable < I > ,
45- num_bits : usize ,
46- ) -> Self {
39+ pub fn from_bit_chunks < I : Iterator < Item = BitChunk > > ( chunks : I , num_bits : usize ) -> Self {
4740 let mut result = Self :: default ( ) ;
4841 result. resize ( num_bits) ;
4942 let blocks = result. blocks . to_mut ( ) ;
You can’t perform that action at this time.
0 commit comments