1 2 3 4 5 6 7 8 9 10
use crate::sim::cell_sim::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), ]) }