Trait dbase::ReadableRecord

source ·
pub trait ReadableRecord: Sized {
    // Required method
    fn read_using<Source, MemoSource>(
        field_iterator: &mut FieldIterator<'_, Source, MemoSource>
    ) -> Result<Self, FieldIOError>
       where Source: Read + Seek,
             MemoSource: Read + Seek;
}
Expand description

Trait to be implemented by structs that represent records read from a dBase file.

The field iterator gives access to methods that allow to read fields value or skip them. It is not required that the user reads / skips all the fields in a record, in other words: it is not required to consume the iterator.

Required Methods§

source

fn read_using<Source, MemoSource>( field_iterator: &mut FieldIterator<'_, Source, MemoSource> ) -> Result<Self, FieldIOError>
where Source: Read + Seek, MemoSource: Read + Seek,

function to be implemented that returns a new instance of your type using values read from the `FieldIterator’

Object Safety§

This trait is not object safe.

Implementors§