add html writer
This commit is contained in:
parent
ce980db209
commit
b1c6e22735
1 changed files with 17 additions and 0 deletions
17
src/html.rs
Normal file
17
src/html.rs
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
use crate::Event;
|
||||||
|
|
||||||
|
pub fn push_html<'s, I: Iterator<Item = Event>>(s: &mut String, events: I) {
|
||||||
|
Writer::new(events).write()
|
||||||
|
}
|
||||||
|
|
||||||
|
struct Writer<I> {
|
||||||
|
events: I,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl<I: Iterator<Item = Event>> Writer<I> {
|
||||||
|
fn new(events: I) -> Self {
|
||||||
|
Self { events }
|
||||||
|
}
|
||||||
|
|
||||||
|
fn write(self) {}
|
||||||
|
}
|
Loading…
Reference in a new issue