polars_core::utils

Function with_unstable_series

Source
pub fn with_unstable_series<F, T>(dtype: &DataType, f: F) -> T
where F: Fn(&mut AmortSeries) -> T,
Expand description

A utility that allocates an AmortSeries. The applied function can then use that series container to save heap allocations and swap arrow arrays.