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§
Sourcefn read_using<Source, MemoSource>(
field_iterator: &mut FieldIterator<'_, Source, MemoSource>,
) -> Result<Self, FieldIOError>
fn read_using<Source, MemoSource>( field_iterator: &mut FieldIterator<'_, Source, MemoSource>, ) -> Result<Self, FieldIOError>
function to be implemented that returns a new instance of your type using values read from the `FieldIterator’
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.