From b1c6e2273523f893155fc6aeb9bc73e8e551a07c Mon Sep 17 00:00:00 2001 From: Noah Hellman Date: Mon, 28 Nov 2022 00:53:49 +0100 Subject: [PATCH] add html writer --- src/html.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 src/html.rs diff --git a/src/html.rs b/src/html.rs new file mode 100644 index 0000000..8b73547 --- /dev/null +++ b/src/html.rs @@ -0,0 +1,17 @@ +use crate::Event; + +pub fn push_html<'s, I: Iterator>(s: &mut String, events: I) { + Writer::new(events).write() +} + +struct Writer { + events: I, +} + +impl> Writer { + fn new(events: I) -> Self { + Self { events } + } + + fn write(self) {} +}