#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Element<'a> {
start: u32,
end: u32,
kind: ElementKind<'a>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum ElementKind<'a> {
BehaviorSwitch {
text: &'a str,
},
Wikilink {
href: &'a str,
},
Extlink {
href: &'a str,
},
Hr,
Entity {
text: &'a str,
},
Comment {
text: &'a str,
},
Ol,
Ul,
Dd,
Dt,
}