MCPcopy Create free account
hub / github.com/daisy/MathCAT / push

Method push

src/navigate.rs:148–151  ·  view source on GitHub ↗
(&mut self, position: NavigationPosition, command: &'static str)

Source from the content-addressed store, hash-verified

146
147
148 fn push(&mut self, position: NavigationPosition, command: &'static str) {
149 self.position_stack.push(position);
150 self.command_stack.push(command);
151 }
152
153 fn pop(&mut self) -> Option<(NavigationPosition, &'static str)> {
154 assert_eq!(self.position_stack.len(), self.command_stack.len());

Callers 12

apply_navigation_rulesFunction · 0.45
pop_stackFunction · 0.45
zoom_outFunction · 0.45
zoom_out_allFunction · 0.45
move_start_endFunction · 0.45
move_line_start_endFunction · 0.45
move_to_startFunction · 0.45
move_right_supFunction · 0.45
move_cell_char_modeFunction · 0.45
where_am_i_allFunction · 0.45

Calls

no outgoing calls

Tested by 9

zoom_outFunction · 0.36
zoom_out_allFunction · 0.36
move_start_endFunction · 0.36
move_line_start_endFunction · 0.36
move_to_startFunction · 0.36
move_right_supFunction · 0.36
move_cell_char_modeFunction · 0.36
where_am_i_allFunction · 0.36