polars_arrow::compute::cast

Function primitive_map_is_valid

Source
pub unsafe fn primitive_map_is_valid<T: NativeType>(
    from: &PrimitiveArray<T>,
    f: impl Fn(T) -> bool,
    dtype: ArrowDataType,
) -> PrimitiveArray<T>
Available on crate feature compute_cast only.
Expand description

ยงSafety

dtype should be valid for primitive.