pub fn unary_checked<I, F, O>(
array: &PrimitiveArray<I>,
op: F,
data_type: DataType
) -> PrimitiveArray<O> where
I: NativeType,
O: NativeType,
F: Fn(I) -> Option<O>,
Expand description
Version of unary that creates a mutable bitmap that is used to keep track of checked operations. The resulting bitmap is compared with the array bitmap to create the final validity array.