feat(elements): comment and fixed width elements

This commit is contained in:
PoiScript 2019-06-27 18:11:58 +08:00
parent bd1fc756bd
commit 275fbfad34
4 changed files with 85 additions and 136 deletions

View file

@ -349,4 +349,18 @@ pub enum Element<'a> {
end: usize,
value: &'a str,
},
Comment {
#[cfg_attr(all(feature = "serde", not(feature = "extra-serde-info")), serde(skip))]
begin: usize,
#[cfg_attr(all(feature = "serde", not(feature = "extra-serde-info")), serde(skip))]
end: usize,
value: &'a str,
},
FixedWidth {
#[cfg_attr(all(feature = "serde", not(feature = "extra-serde-info")), serde(skip))]
begin: usize,
#[cfg_attr(all(feature = "serde", not(feature = "extra-serde-info")), serde(skip))]
end: usize,
value: &'a str,
},
}