Trait lol_html::OutputSink

source ·
pub trait OutputSink {
    // Required method
    fn handle_chunk(&mut self, chunk: &[u8]);
}
Expand description

Defines an interface for the HtmlRewriter’s output.

Implemented for Fn and FnMut.

Required Methods§

source

fn handle_chunk(&mut self, chunk: &[u8])

Handles rewriter’s output chunk.

Note

The last chunk of the output has zero length.

Implementors§

source§

impl<F: FnMut(&[u8])> OutputSink for F