(&mut self, round: Rounds, landings: Vec<RocketLanding>)
| 66 | /// Add many rocket landings on this round. |
| 67 | #[cfg(test)] |
| 68 | pub(crate) fn add_landings(&mut self, round: Rounds, landings: Vec<RocketLanding>) { |
| 69 | if !self.landings.contains_key(&round) { |
| 70 | self.landings.insert(round, vec![]); |
| 71 | } |
| 72 | |
| 73 | self.landings.get_mut(&round) |
| 74 | .expect("landing round should exist") |
| 75 | .extend(landings); |
| 76 | } |
| 77 | |
| 78 | /// Get the rocket landings on this round. |
| 79 | pub fn landings_on(&self, round: Rounds) -> Vec<RocketLanding> { |
no outgoing calls