pub trait DecodeStream: DecodeRecord + BufferSlice {
// Required method
fn decode_stream<T: HasRType>(self) -> StreamIterDecoder<Self, T>
where Self: Sized;
}Expand description
A trait for decoders that can be converted to streaming iterators.
Required Methods§
Sourcefn decode_stream<T: HasRType>(self) -> StreamIterDecoder<Self, T>where
Self: Sized,
fn decode_stream<T: HasRType>(self) -> StreamIterDecoder<Self, T>where
Self: Sized,
Converts the decoder into a streaming iterator of records of type T. This
lazily decodes the data.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.