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

Method top

src/navigate.rs:162–168  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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() {

Callers 6

get_navigation_mathmlMethod · 0.80
get_start_nodeFunction · 0.80
apply_navigation_rulesFunction · 0.80
pop_stackFunction · 0.80

Calls 2

is_emptyMethod · 0.80
lenMethod · 0.80

Tested by

no test coverage detected