(
array: &'a dyn Array,
options: &FormatOptions<'a>,
field: Option<&'a Field>,
)
| 1539 | } |
| 1540 | |
| 1541 | fn make_array_formatter<'a>( |
| 1542 | array: &'a dyn Array, |
| 1543 | options: &FormatOptions<'a>, |
| 1544 | field: Option<&'a Field>, |
| 1545 | ) -> Result<ArrayFormatter<'a>, ArrowError> { |
| 1546 | match options.formatter_factory() { |
| 1547 | None => ArrayFormatter::try_new(array, options), |
| 1548 | Some(formatters) => formatters |
| 1549 | .create_array_formatter(array, options, field) |
| 1550 | .transpose() |
| 1551 | .unwrap_or_else(|| ArrayFormatter::try_new(array, options)), |
| 1552 | } |
| 1553 | } |
| 1554 | |
| 1555 | #[cfg(test)] |
| 1556 | mod tests { |
no test coverage detected
searching dependent graphs…