mathml_rs/structs/
bindings.rs

1use super::math_node::NodeIndex;
2use std::fmt;
3
4#[derive(Default, Debug, Clone)]
5pub struct BVar {
6    pub children: Vec<NodeIndex>,
7    pub parent: Option<NodeIndex>,
8}
9
10impl fmt::Display for BVar {
11    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
12        write!(
13            f,
14            "Children: {:?}, Parent: {:?}",
15            self.children, self.parent
16        )
17    }
18}