dbn::decode

Trait DecodeStream

Source
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§

Source

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.

Implementors§

Source§

impl<D> DecodeStream for dbn::decode::MergeDecoder<D>
where D: BufferSlice + DecodeRecordRef,

Source§

impl<D> DecodeStream for RecordDecoder<D>
where D: BufferSlice + DecodeRecordRef,

Source§

impl<R> DecodeStream for dbn::decode::dbn::Decoder<R>
where R: Read,

Source§

impl<R> DecodeStream for DynDecoder<'_, R>
where R: BufRead,

Source§

impl<R: BufRead> DecodeStream for dbn::decode::dbz::Decoder<R>