unary_string_to_primitive_function

Function unary_string_to_primitive_function 

Source
fn unary_string_to_primitive_function<'a, StringArrType, O, F>(
    array: StringArrType,
    op: F,
) -> Result<PrimitiveArray<O>>
where StringArrType: StringArrayType<'a>, O: ArrowPrimitiveType, F: Fn(&'a str) -> Result<O::Native>,
Expand description

given a function op that maps a &str to a Result of an arrow native type, returns a PrimitiveArray after the application of the function to args[0].

ยงErrors

This function errors iff:

  • the number of arguments is not 1 or
  • the function op errors