All rocket landings, ordered by round.
(&self)
| 86 | |
| 87 | /// All rocket landings, ordered by round. |
| 88 | pub fn all(&self) -> Vec<(Rounds, RocketLanding)> { |
| 89 | let mut all_landings: Vec<(Rounds, RocketLanding)> = vec![]; |
| 90 | for (round, landings) in self.landings.clone().into_iter() { |
| 91 | all_landings.extend( |
| 92 | landings.into_iter().map(|landing| (round, landing)) |
| 93 | ); |
| 94 | } |
| 95 | all_landings.sort(); |
| 96 | all_landings |
| 97 | } |
| 98 | |
| 99 | /// All rocket landings, grouped by round but in no particular order. |
| 100 | pub fn all_grouped(&self) -> FnvHashMap<Rounds, Vec<RocketLanding>> { |