Skip to main content

cast_time64_to_time32

Function cast_time64_to_time32 

Source
fn cast_time64_to_time32<FROM, TO, const DIVISOR: i64>(
    array: &dyn Array,
    cast_options: &CastOptions<'_>,
) -> Result<ArrayRef, ArrowError>
where FROM: ArrowPrimitiveType<Native = i64>, TO: ArrowPrimitiveType<Native = i32>,
Expand description

DIVISOR is a const parameter so that each division is by a constant, which the compiler replaces with a multiply and shifts even when the loops aren’t inlined into this function