Trait OutputSink
lol_html
pub trait OutputSink { fn handle_chunk(&mut self, chunk: &[u8]); }
Defines an interface for the HtmlRewriter's output.
HtmlRewriter
Implemented for Fn and FnMut.
Fn
FnMut
fn handle_chunk(&mut self, chunk: &[u8])
Handles rewriter's output chunk.
The last chunk of the output has zero length.
impl<F: FnMut(&[u8])> OutputSink for F