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

Method try_for_each_valid_idx

arrow-buffer/src/buffer/null.rs:214–222  ·  view source on GitHub ↗
(
        &self,
        f: F,
    )

Source from the content-addressed store, hash-verified

212 /// Calls the provided closure for each index in this null mask that is set
213 #[inline]
214 pub fn try_for_each_valid_idx<E, F: FnMut(usize) -> Result<(), E>>(
215 &self,
216 f: F,
217 ) -> Result<(), E> {
218 if self.null_count == self.len() {
219 return Ok(());
220 }
221 self.valid_indices().try_for_each(f)
222 }
223
224 /// Returns the inner [`BooleanBuffer`]
225 #[inline]

Callers 3

try_binaryFunction · 0.80
try_binary_mutFunction · 0.80
try_unaryMethod · 0.80

Calls 2

valid_indicesMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected