Skip to main content

RowSink

Trait RowSink 

Source
pub trait RowSink<S: Sample> {
    type Error: Error + Send + Sync + 'static;

    // Required method
    fn write_row(&mut self, y: u32, row: &[S]) -> Result<(), Self::Error>;
}
Expand description

Destination for row-streaming decode output.

Required Associated Types§

Source

type Error: Error + Send + Sync + 'static

Error returned by the sink when it cannot accept a row.

Required Methods§

Source

fn write_row(&mut self, y: u32, row: &[S]) -> Result<(), Self::Error>

Write one decoded row at source/output row index y.

§Errors

Returns Self::Error when the destination cannot accept the row.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§