feat: Iter struct
This commit is contained in:
parent
f786233852
commit
33f78ee207
6 changed files with 467 additions and 6 deletions
|
|
@ -60,6 +60,8 @@ impl List {
|
|||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(test, derive(PartialEq))]
|
||||
#[derive(Debug)]
|
||||
pub struct ListItem<'a> {
|
||||
pub bullet: &'a str,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ pub use self::{
|
|||
|
||||
#[derive(Debug)]
|
||||
pub enum Element<'a> {
|
||||
Root,
|
||||
Block {
|
||||
block: Block<'a>,
|
||||
begin: usize,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue