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
sourceimpl 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
sourceimpl Clone for FromUtf8Error
impl Clone for FromUtf8Error
sourcefn clone(&self) -> FromUtf8Error
fn clone(&self) -> FromUtf8Error
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for FromUtf8Error
impl Debug for FromUtf8Error
sourceimpl Display for FromUtf8Error
impl Display for FromUtf8Error
sourceimpl Error for FromUtf8Error
impl Error for FromUtf8Error
sourcefn source(&self) -> Option<&(dyn StdError + 'static)>
fn source(&self) -> Option<&(dyn StdError + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl PartialEq<FromUtf8Error> for FromUtf8Error
impl PartialEq<FromUtf8Error> for FromUtf8Error
sourcefn eq(&self, other: &FromUtf8Error) -> bool
fn eq(&self, other: &FromUtf8Error) -> bool
impl Eq for FromUtf8Error
impl StructuralEq for FromUtf8Error
impl StructuralPartialEq for FromUtf8Error
Auto Trait Implementations
impl RefUnwindSafe for FromUtf8Error
impl Send for FromUtf8Error
impl Sync for FromUtf8Error
impl Unpin for FromUtf8Error
impl UnwindSafe for FromUtf8Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more