Struct csv::Utf8Error
[−]
[src]
pub struct Utf8Error { /* fields omitted */ }
A UTF-8 validation error.
This occurs when attempting to convert a ByteRecord
into a
StringRecord
.
The error includes the index of the field that failed validation, and the last byte at which valid UTF-8 was verified.
Methods
impl Utf8Error
[src]
fn field(&self) -> usize
[src]
The field index of a byte record in which UTF-8 validation failed.
fn valid_up_to(&self) -> usize
[src]
The index into the given field up to which valid UTF-8 was verified.
Trait Implementations
impl Clone for Utf8Error
[src]
fn clone(&self) -> Utf8Error
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Utf8Error
[src]
impl Eq for Utf8Error
[src]
impl PartialEq for Utf8Error
[src]
fn eq(&self, __arg_0: &Utf8Error) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Utf8Error) -> bool
[src]
This method tests for !=
.
impl StdError for Utf8Error
[src]
fn description(&self) -> &str
[src]
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
The lower-level cause of this error, if any. Read more