pub trait DecodeSingleSink {
    // Required method
    fn on_number(&mut self, num: u32, nums_decoded: usize);
}
Expand description

Receives numbers decoded via a Decoder in DecodeCursor.decode_sink() that weren’t handed to DecodeQuadSink.on_quad(), whether because the Decoder implementation doesn’t have a natural quad representation, or because the numbers are part of a trailing partial quad.

Required Methods§

source

fn on_number(&mut self, num: u32, nums_decoded: usize)

nums_decoded is the number of numbers that have already been decoded before this number in the current invocation of DecodeCursor.decode_sink().

Implementors§