mathml-rs 0.1.2

MathML parser written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use super::math_node::NodeIndex;
use std::fmt;

#[derive(Default, Debug, Clone, Eq, PartialEq)]
pub struct Root {
    pub children: Vec<NodeIndex>,
    pub parent: Option<NodeIndex>,
}

impl fmt::Display for Root {
    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
        write!(
            f,
            "children: {:?}, parent: {:?}",
            self.children, self.parent
        )
    }
}