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]
impl Utf8Error
pub fn field(&self) -> usize
[src]
pub fn field(&self) -> usize
The field index of a byte record in which UTF-8 validation failed.
pub fn valid_up_to(&self) -> usize
[src]
pub fn valid_up_to(&self) -> usize
The index into the given field up to which valid UTF-8 was verified.
Trait Implementations
impl Clone for Utf8Error
[src]
impl Clone for Utf8Error
fn clone(&self) -> Utf8Error
[src]
fn clone(&self) -> Utf8Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Utf8Error
[src]
impl Debug for Utf8Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Utf8Error
[src]
impl Eq for Utf8Error
impl PartialEq for Utf8Error
[src]
impl PartialEq for Utf8Error
fn eq(&self, other: &Utf8Error) -> bool
[src]
fn eq(&self, other: &Utf8Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Utf8Error) -> bool
[src]
fn ne(&self, other: &Utf8Error) -> bool
This method tests for !=
.
impl StdError for Utf8Error
[src]
impl StdError for Utf8Error
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for Utf8Error
[src]
impl Display for Utf8Error