[][src]Trait lol_html::OutputSink

pub trait OutputSink {
    fn handle_chunk(&mut self, chunk: &[u8]);
}

Defines an interface for the HtmlRewriter's output.

Implemented for Fn and FnMut.

Required methods

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

Handles rewriter's output chunk.

Note

The last chunk of the output has zero length.

Loading content...

Implementors

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

Loading content...