Trait DecodeRecordRef

Source
pub trait DecodeRecordRef {
    // Required method
    fn decode_record_ref(&mut self) -> Result<Option<RecordRef<'_>>>;
}
Expand description

Trait for types that decode references to DBN records of a dynamic type.

Required Methods§

Source

fn decode_record_ref(&mut self) -> Result<Option<RecordRef<'_>>>

Tries to decode a generic reference a record. Returns Ok(None) if input has been exhausted.

§Errors

This function returns an error if the underlying reader returns an error of a kind other than io::ErrorKind::UnexpectedEof upon reading.

If the length property of the record is invalid, an Error::Decode will be returned.

Implementors§

Source§

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

Source§

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

Source§

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

Source§

impl<R> DecodeRecordRef for dbn::decode::dbn::RecordDecoder<R>
where R: Read,

Source§

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

Source§

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