def indexed_prepared_restore_state

bendvy-ecs-core@0.1.0.3 · column.bend:505

import bendvy-ecs-core@0.1.0.3/column.bend as Column
import Base
import lifecycle.bend as L
import indexed_lifecycle.bend as M

505def indexed_prepared_restore_state(~S:Data,~C:Type,+id:U32,stamp:L.Stamp,state:IndexedPreparedState<S,C>) -> Column<S,C>:
506  match state:
507    case IndexedPreparedState{values,metadata,capacity,current,owner,remaining,past}: PreparedIndexed{IndexedPreparedOwned{IndexedPreparedState{values,M.set(metadata,id,stamp),capacity,current,owner,remaining,past}}}

Uses (6)

Used by (1)