MCPcopy Create free account
hub / github.com/apache/arrow-rs / next

Method next

arrow-buffer/src/util/bit_iterator.rs:61–70  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

59
60 #[inline]
61 fn next(&mut self) -> Option<Self::Item> {
62 if self.current_offset == self.end_offset {
63 return None;
64 }
65 // Safety:
66 // offsets in bounds
67 let v = unsafe { get_bit_raw(self.buffer.as_ptr(), self.current_offset) };
68 self.current_offset += 1;
69 Some(v)
70 }
71
72 fn size_hint(&self) -> (usize, Option<usize>) {
73 let remaining_bits = self.end_offset - self.current_offset;

Callers 14

extend_from_iterMethod · 0.45
from_iterMethod · 0.45
has_non_empty_nullsMethod · 0.45
union_manyMethod · 0.45
zip_modifyMethod · 0.45
nthMethod · 0.45
lastMethod · 0.45
maxMethod · 0.45
newMethod · 0.45
advance_to_set_bitMethod · 0.45

Calls 4

get_bit_rawFunction · 0.85
advance_to_set_bitMethod · 0.80
trailing_zerosMethod · 0.80
as_ptrMethod · 0.45

Tested by 1