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

Method take_iter_unchecked

arrow-array/src/array/boolean_array.rs:257–262  ·  view source on GitHub ↗

Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i` # Safety caller must ensure that the offsets in the iterator are less than the array len()

(
        &'a self,
        indexes: impl Iterator<Item = Option<usize>> + 'a,
    )

Source from the content-addressed store, hash-verified

255 ///
256 /// caller must ensure that the offsets in the iterator are less than the array len()
257 pub unsafe fn take_iter_unchecked<'a>(
258 &'a self,
259 indexes: impl Iterator<Item = Option<usize>> + 'a,
260 ) -> impl Iterator<Item = Option<bool>> + 'a {
261 indexes.map(|opt_index| opt_index.map(|index| unsafe { self.value_unchecked(index) }))
262 }
263
264 /// Create a [`BooleanArray`] by evaluating the operation for
265 /// each element of the provided array

Callers

nothing calls this directly

Calls 1

value_uncheckedMethod · 0.45

Tested by

no test coverage detected