arrow_cast::cast::string

Function cast_string_to_interval

Source
pub(crate) fn cast_string_to_interval<Offset, F, ArrowType>(
    array: &dyn Array,
    cast_options: &CastOptions<'_>,
    parse_function: F,
) -> Result<ArrayRef, ArrowError>
where Offset: OffsetSizeTrait, ArrowType: ArrowPrimitiveType, F: Fn(&str) -> Result<ArrowType::Native, ArrowError> + Copy,