Struct csv::FromUtf8Error
source · pub struct FromUtf8Error { /* private fields */ }
Expand description
A UTF-8 validation error during record conversion.
This occurs when attempting to convert a ByteRecord
into a
StringRecord
.
Implementations§
source§impl FromUtf8Error
impl FromUtf8Error
sourcepub fn into_byte_record(self) -> ByteRecord
pub fn into_byte_record(self) -> ByteRecord
Access the underlying ByteRecord
that failed UTF-8 validation.
sourcepub fn utf8_error(&self) -> &Utf8Error
pub fn utf8_error(&self) -> &Utf8Error
Access the underlying UTF-8 validation error.
Trait Implementations§
source§impl Clone for FromUtf8Error
impl Clone for FromUtf8Error
source§fn clone(&self) -> FromUtf8Error
fn clone(&self) -> FromUtf8Error
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FromUtf8Error
impl Debug for FromUtf8Error
source§impl Display for FromUtf8Error
impl Display for FromUtf8Error
source§impl Error for FromUtf8Error
impl Error for FromUtf8Error
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn StdError>
fn cause(&self) -> Option<&dyn StdError>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting