pub trait InputRecorder<B: Deref<Target = [u8]>> {
    // Required method
    fn record_block_start(&self, new_block: B);
}
Expand description

Base trait of any recorder, one that can react to a block of input being processed.

Required Methods§

source

fn record_block_start(&self, new_block: B)

Record that all processing of a block was started

The recorder may assume that only matches or terminators with indices pointing to the block that was last recorded as started are reported.

Implementors§

source§

impl<'s, B, S> InputRecorder<B> for NodesRecorder<'s, B, S>
where B: Deref<Target = [u8]>, S: Sink<Match>,

source§

impl<'s, B: Deref<Target = [u8]>, S> InputRecorder<B> for ApproxSpanRecorder<'s, S>
where S: Sink<MatchSpan>,

source§

impl<'s, B: Deref<Target = [u8]>, S> InputRecorder<B> for IndexRecorder<'s, S>
where S: Sink<MatchIndex>,

source§

impl<B: Deref<Target = [u8]>> InputRecorder<B> for CountRecorder

source§

impl<B: Deref<Target = [u8]>> InputRecorder<B> for EmptyRecorder