OutputSink

Trait 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