Struct csv_async::Position [−][src]
pub struct Position { /* fields omitted */ }
Expand description
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 1
.
A CSV reader will automatically assign the position of each record.
Implementations
Set the line number of this position.
If the line number is less than 1
, then this method panics.
Set the record index of this position.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Position
impl UnwindSafe for Position
Blanket Implementations
Mutably borrows from an owned value. Read more