feat: Iter struct

This commit is contained in:
PoiScript 2019-06-27 00:03:59 +08:00
parent f786233852
commit 33f78ee207
6 changed files with 467 additions and 6 deletions

View file

@ -60,6 +60,8 @@ impl List {
}
}
#[cfg_attr(test, derive(PartialEq))]
#[derive(Debug)]
pub struct ListItem<'a> {
pub bullet: &'a str,
}

View file

@ -47,6 +47,7 @@ pub use self::{
#[derive(Debug)]
pub enum Element<'a> {
Root,
Block {
block: Block<'a>,
begin: usize,