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)
| 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>( |