float_pigment_mlp/node/
mod.rs

1use self::{element::Element, fragment::Fragment, text::Text};
2
3pub mod attribute;
4pub mod element;
5pub mod fragment;
6pub mod text;
7
8pub enum NodeType {
9    Fragment(Fragment),
10    Element(Element),
11    Text(Text),
12}
13
14impl std::fmt::Debug for NodeType {
15    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
16        match self {
17            Self::Element(e) => {
18                write!(f, "{e:?}")
19            }
20            Self::Fragment(e) => {
21                write!(f, "{e:?}")
22            }
23            Self::Text(e) => {
24                write!(f, "{e:?}")
25            }
26        }
27    }
28}