state_null

Function state_null 

Source
pub fn state_null<'a, S: CycleCollection<'a, TickCycle, Location = Tick<L>> + DeferTick, L: Location<'a> + NoTick>(
    tick: &Tick<L>,
) -> (TickCycleHandle<'a, S>, S)
Available on stageleft_runtime only.
Expand description

Creates a stateful cycle without an initial value for use in sliced!.

On the first iteration, the state will be null/empty. Subsequent iterations receive the value assigned to the mutable binding at the end of the previous iteration.