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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".