lance_datagen::generator::array

Function step

Source
pub fn step<DataType>() -> Box<dyn ArrayGenerator>
where DataType::Native: Copy + Default + AddAssign<DataType::Native> + 'static, DataType: ArrowPrimitiveType, PrimitiveArray<DataType>: From<Vec<DataType::Native>> + 'static,
Expand description

Create a generator that starts at 0 and increments by 1 for each element