(&self)
| 160 | } |
| 161 | |
| 162 | fn top(&self) -> Option<(&NavigationPosition, &'static str)> { |
| 163 | if self.position_stack.is_empty() { |
| 164 | return None; |
| 165 | } |
| 166 | let last = self.position_stack.len()-1; |
| 167 | return Some( (&self.position_stack[last], self.command_stack[last]) ); |
| 168 | } |
| 169 | |
| 170 | pub fn get_navigation_mathml<'a>(&self, mathml: Element<'a>) -> Result<(Element<'a>, usize)> { |
| 171 | if self.position_stack.is_empty() { |
no test coverage detected