Skip to main content

DecodeOutputSink

Trait DecodeOutputSink 

Source
pub trait DecodeOutputSink {
    // Required method
    fn push(&mut self, chunk: Chunk) -> bool;
}
Expand description

Consumer for decoded chunks produced by a Decoder.

Returning false from Self::push closes the sink. Built-in decoders honor that signal while producing candidates, so the pipeline can stop allocation and decode work at its shared per-root budget boundary.

Required Methods§

Source

fn push(&mut self, chunk: Chunk) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl DecodeOutputSink for Vec<Chunk>

Source§

fn push(&mut self, chunk: Chunk) -> bool

Implementors§