dbn::decode

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<'a, R> DecodeRecordRef for DynDecoder<'a, R>
where R: BufRead,

source§

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

source§

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

source§

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