add html writer

This commit is contained in:
Noah Hellman 2022-11-28 00:53:49 +01:00
parent ce980db209
commit b1c6e22735

17
src/html.rs Normal file
View 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) {}
}