use crate::sim::cell_manager::sim::{PostUpdateAction, UpdateCtx}; #[inline] pub fn sim_update(ctx: &mut UpdateCtx) -> PostUpdateAction { ctx.swap_or_settle(&[ (0, 1), (-1 + 2 * ctx.seqno_parity as i32, 1), (1 - 2 * ctx.seqno_parity as i32, 1), ]) }