Return the [`Variant`] instance stored at the given row This is a convenience wrapper that calls [`VariantArray::try_value`] and unwraps the `Result`. Use `try_value` if you need to handle conversion errors gracefully. # Panics if the index is out of bounds if the array value is null if `try_value` returns an error.
(&self, index: usize)
| 365 | /// * if the array value is null |
| 366 | /// * if `try_value` returns an error. |
| 367 | pub fn value(&self, index: usize) -> Variant<'_, '_> { |
| 368 | self.try_value(index).unwrap() |
| 369 | } |
| 370 | |
| 371 | /// Return the [`Variant`] instance stored at the given row |
| 372 | /// |