rust: cannot borrow `*self` as mutable because it is also borrowed as immutable
making the pong game for @tomasz_k (long story) and im stuck on the borrow checker. i have a game struct with a list of entities and i want to update each one, but update needs to call a method on self struct Game { items: Vec<Entity>, score: u32, } impl Game { fn tick(&mut self) { for item in self.items.iter() { self.update(item); } } fn update(&mut self, item: &Entity) { // moves the item, maybe changes score } }…