S2677K7B2K3QFMGTRAWFCI3IZMKXJCRBA33WIHERUKFBHE472L2QC
let position = record.position().expect("position is set by csv::Reader");
let offset = SourceOffset::from((position.byte() + 1) as usize);
let new_date = record
.deserialize(Some(&headers))
.map(|record| inner.date(record))
.context(DeserializationSnafu { offset });
let new_date = self
.deserialize_record::<R>(&mut record, &headers)
.map(|record| inner.date(record));
impl Importer {}
impl Importer {
fn deserialize_record<'de, 'h: 'de, R>(
&self,
record: &'de mut Record,
headers: &'h Record,
) -> Result<R::Record<'de>, RecordError<R::Error>>
where
R: RecordImporter,
{
let position = record.position().expect("position is set by csv::Reader");
let offset = SourceOffset::from((position.byte() + 1) as usize);