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

Method value

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

Returns the boolean value at index `i`. Note: This method does not check for nulls and the value is arbitrary if [`is_null`](Self::is_null) returns true for the index. # Panics Panics if index `i` is out of bounds

(&self, i: usize)

Source from the content-addressed store, hash-verified

231 /// # Panics
232 /// Panics if index `i` is out of bounds
233 pub fn value(&self, i: usize) -> bool {
234 assert!(
235 i < self.len(),
236 "Trying to access an element at index {} from a BooleanArray of length {}",
237 i,
238 self.len()
239 );
240 // Safety:
241 // `i < self.len()
242 unsafe { self.value_unchecked(i) }
243 }
244
245 /// Returns an iterator that returns the values of `array.value(i)` for an iterator with each element `i`
246 pub fn take_iter<'a>(

Callers 3

fmtMethod · 0.45
take_iterMethod · 0.45

Calls 1

value_uncheckedMethod · 0.45