MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / pop

Method pop

src/navigation/mod.rs:81–88  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

get_transitionMethod · 0.80
beginMethod · 0.80

Tested by

no test coverage detected