pub fn utf8_to_date32<O: Offset>(from: &Utf8Array<O>) -> PrimitiveArray<i32> {
    let iter = from.iter().map(|x| {
        x.and_then(|x| {
            x.parse::<chrono::NaiveDate>()
                .ok()
                .map(|x| x.num_days_from_ce() - EPOCH_DAYS_FROM_CE)
        })
    });
    PrimitiveArray::<i32>::from_trusted_len_iter(iter).to(DataType::Date32)
}
/// Casts a [`Utf8Array`] to a Date32 primitive, making any uncastable value a Null.
Casts a [`Utf8Array`] to a Date32 primitive, making any uncastable value a Null.
Casts a [ ` Utf8Array ` ] to a Date32 primitive making any uncastable value a Null .
pub fn utf8_to_date32<O: Offset>(from: &Utf8Array<O>) -> PrimitiveArray<i32> {
    let iter = from.iter().map(|x| {
        x.and_then(|x| {
            x.parse::<chrono::NaiveDate>()
                .ok()
                .map(|x| x.num_days_from_ce() - EPOCH_DAYS_FROM_CE)
        })
    });
    PrimitiveArray::<i32>::from_trusted_len_iter(iter).to(DataType::Date32)
}
pub fn utf8_to_date32 < O : Offset > ( from : & Utf8Array < O > ) -> PrimitiveArray < i32 > { let iter = from . iter ( ) . map ( | x | { x . and_then ( | x | { x . parse :: < chrono :: NaiveDate > ( ) . ok ( ) . map ( | x | x . num_days_from_ce ( ) - EPOCH_DAYS_FROM_CE ) } ) } ) ; PrimitiveArray :: < i32 > :: from_trusted_len_iter ( iter ) . to ( DataType :: Date32 ) }
Casts a [`Utf8Array`] to a Date32 primitive, making any uncastable value a Null.
Casts a [ ` Utf8Array ` ] to a Date32 primitive making any uncastable value a Null .
from
&Utf8Array<O>