use simple_left_right::Absorb; #[cfg(test)] #[derive(Clone)] pub struct CounterAddOp(i32); #[cfg(test)] impl Absorb for i32 { fn absorb(&mut self, operation: CounterAddOp) { *self += operation.0; } }