arrow_arith::arity

Function try_unary_dict

Source
fn try_unary_dict<K, F, T>(
    array: &DictionaryArray<K>,
    op: F,
) -> Result<ArrayRef, ArrowError>
where K: ArrowDictionaryKeyType + ArrowNumericType, T: ArrowPrimitiveType, F: Fn(T::Native) -> Result<T::Native, ArrowError>,
Expand description

A helper function that applies a fallible unary function to a dictionary array with primitive value type.