(&mut self)
| 79 | } |
| 80 | |
| 81 | pub fn pop(&mut self) -> Option<Route> { |
| 82 | let transition = self.get_transition( |
| 83 | self.route_stack.get(self.route_stack.len() - 2).map(|r| &r.route_type), |
| 84 | self.route_stack.back().map(|r| &r.route_type), |
| 85 | ); |
| 86 | transition.begin(); |
| 87 | self.route_stack.pop_back() |
| 88 | } |
| 89 | |
| 90 | pub fn navigate(&mut self, to: RouteType) { |
| 91 | if let Some(from) = &self.current_route { |
nothing calls this directly
no test coverage detected