decode_record_fn

Function decode_record_fn 

Source
pub fn decode_record_fn<'a, V, R>(
    visitor: &mut V,
    version: u8,
    tx_offset: u64,
    reader: &mut R,
) -> Result<Txdata<V::Row>, DecoderError<V::Error>>
where V: Visitor, V::Row: Encode, R: BufReader<'a>,
Expand description

A free standing implementation of crate::Decoder::decode_record, which drives the supplied Visitor.

Simplifies decoder implementations operating on Txdata, as the implementation only needs to care about managing the Visitor (which may be behind a lock).