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

Method next_back

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

Source from the content-addressed store, hash-verified

145
146impl DoubleEndedIterator for BitIterator<'_> {
147 fn next_back(&mut self) -> Option<Self::Item> {
148 if self.current_offset == self.end_offset {
149 return None;
150 }
151 self.end_offset -= 1;
152 // Safety:
153 // offsets in bounds
154 let v = unsafe { get_bit_raw(self.buffer.as_ptr(), self.end_offset) };
155 Some(v)
156 }
157
158 fn nth_back(&mut self, n: usize) -> Option<Self::Item> {
159 // Check if we can advance to the desired offset.

Callers 2

nth_backMethod · 0.45

Calls 2

get_bit_rawFunction · 0.85
as_ptrMethod · 0.45

Tested by

no test coverage detected