A position in CSV data.
A position is used to report errors in CSV data. All positions include the byte offset, line number and record index at which the error occurred.
Byte offsets and record indices start at
0. Line numbers start at
A CSV reader will automatically assign the position of each record.
Returns a new position initialized to the start value.
The byte offset, starting at
0, of this position.
The line number, starting at
1, of this position.
The record index, starting with the first record at
Set the byte offset of this position.
Set the line number of this position.
If the line number is less than
1, then this method panics.
pub fn set_record(&mut self, record: u64) -> &mut Position[src]
Set the record index of this position.
impl StructuralEq for Position[src]
impl StructuralPartialEq for Position[src]
impl RefUnwindSafe for Position
impl UnwindSafe for Position
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.