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

Function get_element

src/interface.rs:391–401  ·  view source on GitHub ↗
(package: &Package)

Source from the content-addressed store, hash-verified

389}
390
391pub fn get_element(package: &Package) -> Element {
392 let doc = package.as_document();
393 let mut result = None;
394 for root_child in doc.root().children() {
395 if let ChildOfRoot::Element(e) = root_child {
396 assert!(result.is_none());
397 result = Some(e);
398 }
399 };
400 return result.unwrap();
401}
402
403#[allow(dead_code)]
404fn trim_doc(doc: &Document) {

Callers 15

illegal_mathml_elementFunction · 0.85
empty_mrow_with_intentFunction · 0.85
test_intentFunction · 0.85
set_mathmlFunction · 0.85
get_spoken_textFunction · 0.85
get_overview_textFunction · 0.85
get_brailleFunction · 0.85
do_navigate_keypressFunction · 0.85
do_navigate_commandFunction · 0.85
get_navigation_mathmlFunction · 0.85

Calls

no outgoing calls

Tested by 15

illegal_mathml_elementFunction · 0.68
empty_mrow_with_intentFunction · 0.68
test_intentFunction · 0.68
zoom_inFunction · 0.68
zoom_in_parensFunction · 0.68
zoom_in_allFunction · 0.68
zoom_outFunction · 0.68
zoom_out_allFunction · 0.68
move_start_endFunction · 0.68
move_line_start_endFunction · 0.68