Returns the array's value at index `i`. Note: This method does not check for nulls and the value is arbitrary (but still well-defined) if [`is_null`](Self::is_null) returns true for the index. # Panics Panics if index `i` is out of bounds
(&self, i: usize)
| 294 | /// # Panics |
| 295 | /// Panics if index `i` is out of bounds |
| 296 | pub fn value(&self, i: usize) -> ArrayRef { |
| 297 | let type_id = self.type_id(i); |
| 298 | let value_offset = self.value_offset(i); |
| 299 | let child = self.child(type_id); |
| 300 | child.slice(value_offset, 1) |
| 301 | } |
| 302 | |
| 303 | /// Returns the names of the types in the union. |
| 304 | pub fn type_names(&self) -> Vec<&str> { |