pub fn format_array_value(
array: &dyn Array,
row: usize,
) -> TuiResult<Option<String>>Expand description
Format an Arrow array value at the given row index as a display string
Returns None if the value is null, Some(formatted_string) otherwise.
Returns an error only for truly unsupported types.
§Arguments
array- The Arrow array to read fromrow- The row index within the array
§Example
ⓘ
let array = StringArray::from(vec!["hello", "world"]);
let formatted = format_array_value(&array, 0)?;
assert_eq!(formatted, Some("hello".to_string()));