(&mut self, route: Route)
| 44 | } |
| 45 | |
| 46 | pub fn navigate(&mut self, route: Route) { |
| 47 | if self.current != route { |
| 48 | self.history.push(self.current.clone()); |
| 49 | self.current = route; |
| 50 | } |
| 51 | } |
| 52 | |
| 53 | pub fn go_back(&mut self) -> bool { |
| 54 | if self.history.len() > 1 { |